From 4593a526a91d40d26cf6799e6150bda6769f9bed Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 19 Mar 2018 19:37:12 -0700 Subject: fix usage printing correctness --- doc/example.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'doc/example.c') diff --git a/doc/example.c b/doc/example.c index 08a9d7f..1f2708c 100644 --- a/doc/example.c +++ b/doc/example.c @@ -2,7 +2,7 @@ int main(int argc, char **argv) { - const char *set[] = { "choice_a", "choice_b", NULL }; + const char *set[] = { "str_a", "str_b", NULL }; /* array containing all options and their types / attributes */ struct simple_opt options[] = { @@ -21,11 +21,8 @@ int main(int argc, char **argv) { SIMPLE_OPT_STRING, 's', NULL, true, "this one doesn't have a long_name version" }, { SIMPLE_OPT_STRING_SET, '\0', "set-choice", true, - "a choice of one string from a NULL-terminated array." - " note that, in order to maintain redability, the description" - " indentation does not accomodate the full width of an" - " overly-wide custom_arg_string like (choice_a|choice_b)", - "(choice_a|choice_b)", set }, + "a choice of one string from a NULL-terminated array", + "(str_a|str_b)", set }, { SIMPLE_OPT_CHAR, 'c', "char", false, "(optionally) takes a character argument" }, { SIMPLE_OPT_END }, -- cgit v1.2.3