-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor improvements in command boostrapping code
- Modified argparse building process to handle loader failures (specifically caused by a SyntaxError to build a bogus place-holder for the subcommand with an invalid '.py' file. This eliminates the "unknown command" and, depending on the args given, may report the correct syntax error, but it may just say "unrecognized arguments", but overall it's still a step in the right direction. This is primarily a developer issue. - Allow pre_run() command to return an exit_code and abort before run() is called, without explicitly requiring an exception.
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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