From 46d2cda500242caae2ccf7cee71200d4bfe7c7a5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 10 Oct 2017 18:16:08 -0500 Subject: Tweak help_exit() to show "See %s --help" message on the same line. --- toys/other/sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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); } } -- cgit v1.2.3