X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fopt%2Ftest%2Futils.c;fp=ccan%2Fopt%2Ftest%2Futils.c;h=5b054f87f315ce7524dd5c90456467c29e80e777;hp=2a310495fba5cd96eff4d45c8a96446430a0e7c6;hb=7e381e6c241957ff5840b1d8a0ab5f3bde6337c2;hpb=b23be29f01f22bba07b8cb8bcb41dab92180f219 diff --git a/ccan/opt/test/utils.c b/ccan/opt/test/utils.c index 2a310495..5b054f87 100644 --- a/ccan/opt/test/utils.c +++ b/ccan/opt/test/utils.c @@ -84,17 +84,17 @@ struct opt_table long_table[] = { struct opt_table long_and_short_table[] = { /* Short and long, different args. */ - OPT_WITHOUT_ARG("--ggg/-g", test_noarg, "ggg", "Description of ggg"), - OPT_WITH_ARG("-h/--hhh", test_arg, NULL, "hhh", "Description of hhh"), + OPT_WITHOUT_ARG("--ggg|-g", test_noarg, "ggg", "Description of ggg"), + OPT_WITH_ARG("-h|--hhh", test_arg, NULL, "hhh", "Description of hhh"), OPT_ENDTABLE }; /* Sub-table test. */ struct opt_table subtables[] = { /* Two short, and two long long, no description */ - OPT_WITH_ARG("--jjj/-j/--lll/-l", test_arg, show_arg, "jjj", ""), + OPT_WITH_ARG("--jjj|-j|--lll|-l", test_arg, show_arg, "jjj", ""), /* Hidden option */ - OPT_WITH_ARG("--mmm/-m", test_arg, show_arg, "mmm", opt_hidden), + OPT_WITH_ARG("--mmm|-m", test_arg, show_arg, "mmm", opt_hidden), OPT_SUBTABLE(short_table, NULL), OPT_SUBTABLE(long_table, "long table options"), OPT_SUBTABLE(long_and_short_table, NULL),