http://bugs.winehq.org/show_bug.cgi?id=5856
------- Additional Comments From ekkehard.morgenstern@onlinehome.de 2006-05-08 17:48 ------- OK, here's a patch for the current CVS Wine version of "wineconsole.c":
732a733,744
WINECON_OutputHelp
- Outputs help text.
*/
static void WINECON_OutputHelp( void ) { WINE_MESSAGE( "Usage: wineconsole PROGRAM [ARGUMENTS...] Run the specified console
program\n"" wineconsole --help Display this help and exit\n" " wineconsole --backend=user PROGRAM Run the program in its own window\n"" wineconsole --backend=curses PROGR Run the program in this terminal\n" " wineconsole --use-event=HNDDEC Signal specified event after launch\nThe default for the backend option is 'user'.\n"
);
}
/******************************************************************
742c754 < wci->backend = WCCURSES_InitBackend; ---
wci->backend = WCUSER_InitBackend;
765a778
wci->backend = WCCURSES_InitBackend;
770a784,787
else if ( strncmp( wci->ptr, "--help", 6 ) == 0 ) { while ( *wci->ptr != '\0' ) ++wci->ptr; return TRUE; }
795a813,818
WINECON_OutputHelp(); return 0; } if ( *wci.ptr == '\0' ) { WINECON_OutputHelp();
816c839 < if (!ret) ---
if (!ret) {
817a841,842
WINECON_OutputHelp(); }
It makes the USER backend the default, and outputs the command line options when either "--help" is given, no args are given, or the args invalid.
(I hope the diff posted okay, haven't read the Bugzilla rules yet)