kernel_optimize_test/scripts/kconfig
Andres Salomon 2f4b489b77 kconfig: use getopt() in conf.c for handling command line arguments
Switch from doing our own parsing of command line arguments to
using getopt(3) to do it.  Aside from simplifying things, this allows us to
specify multiple arguments; the old code could only accept two arguments
(input_mode and kconfig name).

Note some subtle changes:
 - The argument '-?' is no longer supported.
 - '-h' is not treated as an error, so output goes to stdout, and we
   exit with '0'.
 - There is no compatibility checking amongst arguments; the last option
   will simply override earlier options.  For example, 'conf -n -y foo'
   is perfectly valid now (input_mode will be set_yes).  Previously, that
   would have been an error ("can't find file -y").

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
2008-01-28 23:14:36 +01:00
..
lxdialog kconfig: if ncurses-devel is missing then say so 2008-01-28 23:14:36 +01:00
.gitignore [PATCH] .gitignore: add miscellaneous files 2006-11-13 07:40:42 -08:00
check.sh kbuild: check if we can link gettext not just compile 2007-10-12 21:13:50 +02:00
conf.c kconfig: use getopt() in conf.c for handling command line arguments 2008-01-28 23:14:36 +01:00
confdata.c x86: simplify "make ARCH=x86" and fix kconfig all.config 2007-11-17 08:35:43 -08:00
expr.c kconfig: create links in info window 2006-06-09 16:28:07 +02:00
expr.h kconfig: remove unused members from struct symbol 2007-07-25 21:14:30 +02:00
gconf.c kconfig: attach help text to menus 2007-07-25 21:14:26 +02:00
gconf.glade [PATCH] kconfig: set gconf's save-widget's sensitivity according to .config's changed state 2006-12-13 09:05:48 -08:00
images.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kconfig_load.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kxgettext.c kconfig: attach help text to menus 2007-07-25 21:14:26 +02:00
lex.zconf.c_shipped kbuild: update _shipped files for kconfig syntax cleanup 2007-10-12 21:20:32 +02:00
lkc_proto.h x86: simplify "make ARCH=x86" and fix kconfig all.config 2007-11-17 08:35:43 -08:00
lkc.h kconfig/menuconfig: do not hardcode '.config' 2007-05-02 20:58:09 +02:00
Makefile kconfig: if ncurses-devel is missing then say so 2008-01-28 23:14:36 +01:00
mconf.c kconfig/menuconfig: distinguish between selected-by-another options and comments 2007-10-12 21:20:33 +02:00
menu.c Revert "kconfig: tristate choices with mixed tristate and boolean values" 2007-10-19 21:25:45 -07:00
POTFILES.in [PATCH] Kconfig i18n support 2005-05-05 15:24:00 -07:00
qconf.cc kconfig: set title bar in xconfig 2007-10-20 20:16:50 +02:00
qconf.h kconfig/xconfig: sync main view with search dialog current menu 2007-05-02 20:58:08 +02:00
symbol.c kconfig: error out if recursive dependencies are found 2007-05-06 09:20:10 +02:00
util.c kconfig: fix segv fault in menuconfig 2007-10-12 21:15:32 +02:00
zconf.gperf kconfig: syntax cleanup - drop support for "depends/requires/def_boolean" 2007-10-12 21:20:32 +02:00
zconf.hash.c_shipped kbuild: update _shipped files for kconfig syntax cleanup 2007-10-12 21:20:32 +02:00
zconf.l kconfig: fix mconf segmentation fault 2007-05-06 09:27:15 +02:00
zconf.tab.c_shipped kbuild: update _shipped files for kconfig syntax cleanup 2007-10-12 21:20:32 +02:00
zconf.y kconfig: syntax cleanup - drop support for "depends/requires/def_boolean" 2007-10-12 21:20:32 +02:00