From 29e75d51d447c5c0aae9834f5988b79a945c7acc Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 1 Oct 2016 15:52:00 -0500 Subject: Move --version handling next to --help handling, so it applies to all commands. Say "toybox" before version string. Tweak sed to preserve lie-to-autoconf. --- Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Config.in') diff --git a/Config.in b/Config.in index 76b2ef1d..07c6d70c 100644 --- a/Config.in +++ b/Config.in @@ -82,12 +82,13 @@ config TOYBOX_HELP Include help text for each command. config TOYBOX_HELP_DASHDASH - bool "--help" + bool "--help and --version" default y depends on TOYBOX_HELP help Support --help argument in all commands, even ones with a NULL - optstring. Produces the same output as "help command". + optstring. (Use TOYFLAG_NOHELP to disable.) Produces the same output + as "help command". --version shows toybox version. config TOYBOX_I18N bool "Internationalization support" -- cgit v1.2.3