Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate input modes for --help, --license and --version #12118

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

cameel
Copy link
Member

@cameel cameel commented Oct 11, 2021

Solves part of #11731.
Alternative approach for #11800.

To properly finish #11800 I need to remove the exit() from the code that prints license and version. Doing this complicates the control flow and I think that the right solution is to change that flow and actually treat --help, --license, and --version as separate input modes. This way we can properly move them to CommandLineInterface and only do actual parsing in CommandLineParser.

@cameel cameel self-assigned this Oct 11, 2021
@cameel cameel mentioned this pull request Oct 11, 2021
@cameel cameel force-pushed the separate-input-modes-for-help-license-version branch 2 times, most recently from c8b09a3 to ef8d52f Compare October 11, 2021 18:36
@cameel cameel changed the base branch from develop to fix-circleci-macos-cache-key October 11, 2021 18:36
@cameel
Copy link
Member Author

cameel commented Oct 11, 2021

Note: this is now based on the CI fix (#12106).

Base automatically changed from fix-circleci-macos-cache-key to develop October 12, 2021 14:22
@cameel cameel force-pushed the separate-input-modes-for-help-license-version branch from ef8d52f to a168953 Compare October 12, 2021 16:07
@cameel cameel force-pushed the separate-input-modes-for-help-license-version branch 2 times, most recently from adefbd8 to 531ea36 Compare October 14, 2021 11:45
- The distinction between them is not as clear-cut as it should be. For example processInput() prints output in assembly mode.
@cameel cameel force-pushed the separate-input-modes-for-help-license-version branch from 531ea36 to 0417db0 Compare November 2, 2021 15:32
@cameel cameel merged commit 2d45099 into develop Nov 3, 2021
@cameel cameel deleted the separate-input-modes-for-help-license-version branch November 3, 2021 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants