Improve error when run with no command given by jacalata · Pull Request #329 · tableau/tabcmd
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 14
Merged
Improve error when run with no command given#329
jacalata merged 3 commits intodevelopmentfrom
Improve error when run with no command given#329
jacalata merged 3 commits intodevelopmentfrom
Conversation
Copy link Copy Markdown
Contributor
jacalata
commented
Jan 8, 2025
jacalata
commented
e.g "tabcmd --server --site --..." would throw an exception about not having an attribute.
Now it will print out the usage information.
jacalata added 3 commits
January 7, 2025 14:32Copy link Copy Markdown
github-actions
bot
commented
Jan 8, 2025
github-actions bot commented
Jan 8, 2025Coverage Report
stephendeoca approved these changes Jan 8, 2025
jacalata
merged commit
b61e158
into
development
jacalata
deleted the
jac/nice-when-no-command
branch
| parser.print_help() | ||
| sys.exit(0) | ||
|
|
||
| if hasattr("namespace", "logging_level") and namespace.logging_level != logging.INFO: |
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this line need updating too? hasattr(namespace
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment