"bitcoin-qt.exe --help" does not work on windows #702

issue Vort opened this issue on December 16, 2011
  1. Vort commented at 2:11 PM on December 16, 2011: none

    [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>

  2. laanwj commented at 2:25 PM on December 16, 2011: member

    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.

  3. Vort commented at 3:01 PM on December 16, 2011: none

    hmm...

    bitcoin-qt.exe --help 2> help.txt

    works well

    but I think window with help text is needed anyway

  4. TheBlueMatt commented at 4:10 PM on December 16, 2011: member

    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.

  5. laanwj referenced this in commit bc5e6b9f21 on Feb 17, 2012
  6. laanwj commented at 5:52 PM on February 17, 2012: member

    Fixed in pull request #857

  7. laanwj closed this on Feb 17, 2012

  8. sipa referenced this in commit f7b8f824de on Feb 20, 2012
  9. sje397 referenced this in commit 9bc4a9a523 on Feb 28, 2012
  10. coblee referenced this in commit ac879a2895 on Jul 17, 2012
  11. coblee referenced this in commit 8b9ea12a66 on Jul 17, 2012
  12. destenson referenced this in commit c8ba8a1be5 on Jun 26, 2016
  13. Losangelosgenetics referenced this in commit 35ac3003be on Mar 12, 2020
  14. rajarshimaitra referenced this in commit 4e6cca4da7 on Aug 5, 2021
  15. DrahtBot locked this on Sep 8, 2021
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me