-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix bug that killed the BOT when argument validation was on #2010
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0ec8199
Revert "Revert "Generalize flag handling""
theotherjimmy d6bee56
Squash weird import bug
theotherjimmy 59ae690
Correct style in tests.py
theotherjimmy 6fda53b
Add documentation for the argparser utilities
theotherjimmy 5052e97
Force conversion of all -i, -m, -t to the correct case
theotherjimmy b4b514e
Correct test_name_known, now use argparse_many for lists
theotherjimmy 9040d27
Rework the force types to match case
theotherjimmy 5f18943
Revert parsing of mutiple ides on command line
theotherjimmy 4c5bfaa
Allow --source with -n and -p, or alone; name projects conditionally
theotherjimmy bca1220
Allow --source to be specified more than once
theotherjimmy 7a4bee8
nargs="*" -> action="append"
theotherjimmy 254dccd
Remove checking for existance of build directory
theotherjimmy 6d0716c
Ignore extra MCUs and toolchains in get_config.py
theotherjimmy 122fa93
Allow make.py to accpet just --source
theotherjimmy 61c63b3
Argument error when memap's input file does not exist
theotherjimmy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@theotherjimmy I just noticed this line, will this ever be true now that the
--mcu
option is using anargpars_many
type? Or will it just be an empty array? This line should probably just change to a "falsey" check instead of an explicit check forNone
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think that will fail. The default is None.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks for checking!