commit | 320beefe2d0c5f05f24b4e0c1d13fcb2f1286a78 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 01 10:44:12 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 01 10:44:12 2007 +0100 |
tree | d810b9188145e933ce3f15ca71238fb95989680e | |
parent | 5af1c6f3b46b40ef6b7021a34fd38889226e137f [diff] [blame] |
Don't require 'all' argument to --cmdhelp to dump all options If an argument isn't given, just dump all commands. This has the downside that one MUST use --cmdhelp=option to get option help, where as before --cmdhelp option worked as well. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index c6837c9..1942424 100644 --- a/init.c +++ b/init.c
@@ -581,7 +581,7 @@ }, { .name = "cmdhelp", - .has_arg = required_argument, + .has_arg = optional_argument, .val = 'c', }, {