X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Fman.c;h=ba6bb4c01f6df7a2570a37fbab53594cd3e63921;hb=4c9455f967e21d30db0de2e13b6e1115ab8f36ce;hp=932f0b79447d51b2a2e88fc95fc8e86b1475c878;hpb=2e6af549715f5d7b4c2ab204e46c8b8f6f057045;p=oweals%2Fbusybox.git diff --git a/miscutils/man.c b/miscutils/man.c index 932f0b794..ba6bb4c01 100644 --- a/miscutils/man.c +++ b/miscutils/man.c @@ -2,6 +2,15 @@ * Copyright (C) 2008 Denys Vlasenko * Licensed under GPLv2, see file LICENSE in this source tree. */ +//config:config MAN +//config: bool "man (27 kb)" +//config: default y +//config: help +//config: Format and display manual pages. + +//applet:IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP)) + +//kbuild:lib-$(CONFIG_MAN) += man.o //usage:#define man_trivial_usage //usage: "[-aw] [MANPAGE]..." @@ -244,8 +253,7 @@ int man_main(int argc UNUSED_PARAM, char **argv) INIT_G(); - opt_complementary = "-1"; /* at least one argument */ - opt = getopt32(argv, "+aw"); + opt = getopt32(argv, "^+" "aw" "\0" "-1"/*at least one arg*/); argv += optind; sec_list = xstrdup("0p:1:1p:2:3:3p:4:5:6:7:8:9");