1
1

* main.c (argument_table): Add missing descriptions.

Этот коммит содержится в:
Pavel Roskin 2002-09-19 06:29:25 +00:00
родитель 7d2f7d94dd
Коммит d12a6c2eb6
2 изменённых файлов: 49 добавлений и 44 удалений

@ -1,5 +1,7 @@
2002-09-19 Pavel Roskin <proski@gnu.org> 2002-09-19 Pavel Roskin <proski@gnu.org>
* main.c (argument_table): Add missing descriptions.
* main.c [NATIVE_WIN32]: Remove -S option, it's useless. * main.c [NATIVE_WIN32]: Remove -S option, it's useless.
* main.c (print_mc_usage): Use poptPrintHelp() instead of * main.c (print_mc_usage): Use poptPrintHelp() instead of

@ -2185,68 +2185,71 @@ process_args (poptContext ctx, int c, const char *option_arg)
} }
} }
static const struct poptOption argument_table [] = { static const struct poptOption argument_table[] = {
#ifdef WITH_BACKGROUND #ifdef WITH_BACKGROUND
{ "background", 'B', POPT_ARG_NONE, &background_wait, 0, {"background", 'B', POPT_ARG_NONE, &background_wait, 0,
N_("Use to debug the background code") }, N_("Use to debug the background code")},
#endif #endif
{ "color", 'c', POPT_ARG_NONE, NULL, 'c', {"color", 'c', POPT_ARG_NONE, NULL, 'c',
N_("Request to run in color mode") }, N_("Request to run in color mode")},
{ "colors", 'C', POPT_ARG_STRING, &command_line_colors, 0, {"colors", 'C', POPT_ARG_STRING, &command_line_colors, 0,
N_("Specifies a color configuration") }, N_("Specifies a color configuration")},
#ifdef USE_INTERNAL_EDIT #ifdef USE_INTERNAL_EDIT
{ "edit", 'e', POPT_ARG_STRING, &edit_one_file, 0, {"edit", 'e', POPT_ARG_STRING, &edit_one_file, 0,
N_("Edits one file") }, N_("Edits one file")},
#endif #endif
{ "help", 'h', POPT_ARG_NONE, NULL, 'h', {"help", 'h', POPT_ARG_NONE, NULL, 'h',
N_("Displays this help message") }, N_("Displays this help message")},
{ "help-colors", 'H', POPT_ARG_NONE, NULL, 'H', {"help-colors", 'H', POPT_ARG_NONE, NULL, 'H',
N_("Displays a help screen on how to change the color scheme") }, N_("Displays a help screen on how to change the color scheme")},
#ifdef USE_NETCODE #ifdef USE_NETCODE
{ "ftplog", 'l', POPT_ARG_STRING, NULL, 'l', {"ftplog", 'l', POPT_ARG_STRING, NULL, 'l',
N_("Log ftp dialog to specified file") }, N_("Log ftp dialog to specified file")},
#ifdef WITH_SMBFS #ifdef WITH_SMBFS
{ "debuglevel", 'D', POPT_ARG_STRING, NULL, 'D'}, {"debuglevel", 'D', POPT_ARG_STRING, NULL, 'D',
N_("Set debug level")},
#endif #endif
#endif #endif
{ "libdir", 'f', POPT_ARG_NONE, NULL, 'f' }, {"libdir", 'f', POPT_ARG_NONE, NULL, 'f',
{ "nocolor", 'b', POPT_ARG_NONE, &disable_colors, 0, N_("Print configured paths")},
N_("Requests to run in black and white") }, {"nocolor", 'b', POPT_ARG_NONE, &disable_colors, 0,
{ "nomouse", 'd', POPT_ARG_NONE, NULL, 'd', N_("Requests to run in black and white")},
N_("Disable mouse support in text version") }, {"nomouse", 'd', POPT_ARG_NONE, NULL, 'd',
N_("Disable mouse support in text version")},
#ifdef HAVE_SUBSHELL_SUPPORT #ifdef HAVE_SUBSHELL_SUPPORT
{ "nosubshell", 'u', POPT_ARG_NONE, NULL, 'u', {"nosubshell", 'u', POPT_ARG_NONE, NULL, 'u',
N_("Disables subshell support") }, N_("Disables subshell support")},
{ "forceexec", 'r', POPT_ARG_NONE, &force_subshell_execution,0 }, {"forceexec", 'r', POPT_ARG_NONE, &force_subshell_execution, 0,
N_("Force subshell execution")},
#endif #endif
{ "printwd", 'P', POPT_ARG_NONE, &print_last_wd, 0, {"printwd", 'P', POPT_ARG_NONE, &print_last_wd, 0,
N_("Prints working directory at program exit") }, N_("Prints working directory at program exit")},
{ "resetsoft", 'k', POPT_ARG_NONE, &reset_hp_softkeys, 0, {"resetsoft", 'k', POPT_ARG_NONE, &reset_hp_softkeys, 0,
N_("Resets soft keys on HP terminals") }, N_("Resets soft keys on HP terminals")},
{ "slow", 's', POPT_ARG_NONE, &slow_terminal, 0, {"slow", 's', POPT_ARG_NONE, &slow_terminal, 0,
N_("To run on slow terminals") }, N_("To run on slow terminals")},
#ifndef NATIVE_WIN32 #ifndef NATIVE_WIN32
{ "stickchars", 'a', 0, &force_ugly_line_drawing, 0, {"stickchars", 'a', 0, &force_ugly_line_drawing, 0,
N_("Use stickchars to draw") }, N_("Use stickchars to draw")},
#endif /* !NATIVE_WIN32 */ #endif /* !NATIVE_WIN32 */
#ifdef HAVE_SUBSHELL_SUPPORT #ifdef HAVE_SUBSHELL_SUPPORT
{ "subshell", 'U', POPT_ARG_NONE, &use_subshell, 0, {"subshell", 'U', POPT_ARG_NONE, &use_subshell, 0,
N_("Enables subshell support (default)")}, N_("Enables subshell support (default)")},
#endif #endif
#if defined(HAVE_SLANG) && !defined(NATIVE_WIN32) #if defined(HAVE_SLANG) && !defined(NATIVE_WIN32)
{ "termcap", 't', 0, &SLtt_Try_Termcap, 0, {"termcap", 't', 0, &SLtt_Try_Termcap, 0,
N_("Tries to use termcap instead of terminfo") }, N_("Tries to use termcap instead of terminfo")},
#endif #endif
{ "version", 'V', POPT_ARG_NONE, NULL, 'V', {"version", 'V', POPT_ARG_NONE, NULL, 'V',
N_("Displays the current version") }, N_("Displays the current version")},
{ "view", 'v', POPT_ARG_STRING, &view_one_file, 0, {"view", 'v', POPT_ARG_STRING, &view_one_file, 0,
N_("Launches the file viewer on a file") }, N_("Launches the file viewer on a file")},
{ "xterm", 'x', POPT_ARG_NONE, &force_xterm, 0, {"xterm", 'x', POPT_ARG_NONE, &force_xterm, 0,
N_("Forces xterm features") }, N_("Forces xterm features")},
{ NULL, 0, 0, NULL, 0 } {NULL, 0, 0, NULL, 0}
}; };
static void static void