aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-03-19 19:37:12 -0700
committerkatherine <shmibs@shmibbles.me>2018-03-19 19:37:12 -0700
commit4593a526a91d40d26cf6799e6150bda6769f9bed (patch)
tree9ff3c84f3032dda9d0e7cea8bccfc1e8b36c1523 /doc
parent9231b162706b991fd39f452ab4e9e728c8a933b7 (diff)
downloadsimple-opt-4593a526a91d40d26cf6799e6150bda6769f9bed.tar.gz
fix usage printing correctness
Diffstat (limited to 'doc')
-rw-r--r--doc/example.c9
1 files changed, 3 insertions, 6 deletions
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 },