This repository was archived by the owner on Jan 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Integrate arg parser #76
Open
nader-zouaoui
wants to merge
24
commits into
arm-developer-tools:main
Choose a base branch
from
nader-zouaoui:integrate-arg-parser
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Integrate arg parser #76
nader-zouaoui
wants to merge
24
commits into
arm-developer-tools:main
from
nader-zouaoui:integrate-arg-parser
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
|
This needs some updates to build properly. |
4030834 to
232b7bd
Compare
239bda9 to
86dcc8a
Compare
Contributor
Author
1fb59e5 to
600d2d1
Compare
Contributor
Author
|
new help output |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Description
In this PR we added 2 new classes to the project that help with parsing command line before doing any logic in the app:
arg_parser_argstruc an abstract struct that represents a command line argument and defines how it should be parsedarg_parser_arg_optinherits fromarg_parser_argand defines an optional argument that takes no addition parameterarg_parser_arg_posinherits fromarg_parser_argand defines a positional argument that takes one or more parameter--extra arg or themancommand if query becomes more complex in the future )arg_parserunder theArgParsernamespacevoid arg_parser::parse(const int argc, const wchar_t* argv[]))andvoid arg_parser::print_help()parseis expected to throw if parsing does not go as expectedRelated Issue
Related to #33
fixes #35
Commits
${{ github.event.pull_request.commits }}
How Has This Been Tested?