diff options
author | Rob Landley <rob@landley.net> | 2017-10-10 18:16:08 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-10-10 18:16:08 -0500 |
commit | 46d2cda500242caae2ccf7cee71200d4bfe7c7a5 (patch) | |
tree | 47dbe9ebf18a79b46ffc0c91c71d4b66622dce8b /toys | |
parent | 3eb69d412e79d7d7db197c9a8592ba944a0af77e (diff) | |
download | toybox-46d2cda500242caae2ccf7cee71200d4bfe7c7a5.tar.gz |
Tweak help_exit() to show "See %s --help" message on the same line.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/other/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/sysctl.c b/toys/other/sysctl.c index ad643c92..37735942 100644 --- a/toys/other/sysctl.c +++ b/toys/other/sysctl.c @@ -149,7 +149,7 @@ void sysctl_main() // Loop through arguments, displaying or assigning as appropriate } else { - if (!*toys.optargs) help_exit(0); + if (!*toys.optargs) help_exit("Needs 1 arg"); for (args = toys.optargs; *args; args++) process_key(*args, 0); } } |