Display command line usage to console without requiring X Windows #18604
pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:UsageToConsoleIfNotWin32 changing 1 files +30 −0-
rebroad commented at 12:15 pm on April 12, 2020: contributorFixes #18602
-
Display command line usage to console without requiring X Windows
Fixes #18602
-
fanquake added the label GUI on Apr 12, 2020
-
in src/qt/bitcoin.cpp:437 in b8fce8f481
432@@ -431,6 +433,32 @@ int GuiMain(int argc, char* argv[]) 433 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 434 #endif 435 436+#if defined(WIN32) 437+#else
luke-jr commented at 4:33 pm on April 23, 2020:0#ifndef WIN32
in src/qt/bitcoin.cpp:441 in b8fce8f481
432@@ -431,6 +433,32 @@ int GuiMain(int argc, char* argv[]) 433 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 434 #endif 435 436+#if defined(WIN32) 437+#else 438+ node->setupServerArgs(); 439+ SetupUIArgs(); 440+ std::string error; 441+ if (!gArgs.ParseParameters(argc, argv, error))
luke-jr commented at 4:35 pm on April 23, 2020:Instead of duplicating code, perhaps move it to a new function.
laanwj commented at 1:26 pm on May 4, 2020:Agree. I really dislike duplicating all this code. I’m also not convinced that movingParseParameters
to another place in the initialization sequence won’t interfere with some other part of the initialization sequence. It’s quite a fragile sequence, carefully balanced to work for all use cases.luke-jr changes_requestedluke-jr commented at 4:39 pm on April 23, 2020: memberConcept ACK: It seems console-printed--help
and errors in command-line options is the norm for other GUI applications as well.practicalswift commented at 3:04 pm on April 24, 2020: contributorConcept ACKMarcoFalke commented at 10:47 am on May 17, 2020: memberCan’t this be worked around by settingQT_QPA_PLATFORM=minimal
or so?DrahtBot commented at 8:12 pm on May 29, 2020: memberThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #19104 (gui, refactor: Register Qt meta types in application constructor by promag)
- #17877 (qt, refactor: Make enums in BitcoinUnits class scoped by hebasto)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
DrahtBot added the label Needs rebase on Jun 2, 2020DrahtBot commented at 7:51 am on June 2, 2020: member🐙 This pull request conflicts with the target branch and needs rebase.
fanquake commented at 3:17 pm on July 9, 2020: memberThis has a couple Concept ACKs, however needs follow up and comments addressing. Suggest moving to the GUI repo: https://github.com/bitcoin-core/gui.fanquake closed this on Jul 9, 2020
DrahtBot locked this on Feb 15, 2022
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: 2024-12-18 18:12 UTC
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: 2024-12-18 18:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me