[Ver: bitcoin-0.5.1-win32] [OS: Windows 7 SP1 x64]
Passing --help or -? to bitcoin-qt.exe gives nothing (no message box, no output to console)
D:\Bitcoin>bitcoin-qt.exe -?
D:\Bitcoin>bitcoin-qt.exe --help
D:\Bitcoin>
[Ver: bitcoin-0.5.1-win32] [OS: Windows 7 SP1 x64]
Passing --help or -? to bitcoin-qt.exe gives nothing (no message box, no output to console)
D:\Bitcoin>bitcoin-qt.exe -?
D:\Bitcoin>bitcoin-qt.exe --help
D:\Bitcoin>
The message is printed to stderr. Does windows allow console output for UI programs at all?
It has always been my experience that windows UI programs detach from the terminal as soon as they're executed, and that they show a window with the help message.
Maybe we should to that too.
hmm...
bitcoin-qt.exe --help 2> help.txt
works well
but I think window with help text is needed anyway
Windows UI programs dont choose to detach from the console, but the console detaches them if it sees the UI flag set in the PE binary. bitcoin-wx di show the --help output in a dialog window, so the basic code in AppInit2 (IIRC) should be able to easily support it.