From e98089ab9a4b52664e8baf1168af0ad0b32398ba Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 13 Aug 2016 17:50:54 -0500 Subject: Add TOYFLAG_NOHELP to disable --help processing for individual commands, apply it to "true" and "false". --- toys/posix/false.c | 2 +- toys/posix/true.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'toys') diff --git a/toys/posix/false.c b/toys/posix/false.c index 73458bea..0853b010 100644 --- a/toys/posix/false.c +++ b/toys/posix/false.c @@ -4,7 +4,7 @@ * * See http://opengroup.org/onlinepubs/9699919799/utilities/false.html -USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN)) +USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP)) config FALSE bool "false" diff --git a/toys/posix/true.c b/toys/posix/true.c index 0fbb1786..2543b821 100644 --- a/toys/posix/true.c +++ b/toys/posix/true.c @@ -4,8 +4,8 @@ * * See http://opengroup.org/onlinepubs/9699919799/utilities/true.html -USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN)) -USE_TRUE(OLDTOY(:, true, TOYFLAG_NOFORK)) +USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN|TOYFLAG_NOHELP)) +USE_TRUE(OLDTOY(:, true, TOYFLAG_NOFORK|TOYFLAG_NOHELP)) config TRUE bool "true" -- cgit v1.2.3