-
Notifications
You must be signed in to change notification settings - Fork 56
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
Topic: CommandLine #220
Topic: CommandLine #220
Conversation
Reviews in this chain: |
|
Add command line arguments for structs
dde4626
to
d1ff29b
Compare
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.
Looking good. I like the refactoring to use logging instead of simple prints
Fix copyright statement
Incremental Change for struct support: Add command line argumentsDescriptionAdd command-line arguments to the VSS parser for struct support. Two new arguments are added:
The following checks are added:
Miscellaneous
Example output:
Testing
Signed-off-by: Krishna Koppolu <krishnachaitanya.85@gmail.com> |
vspec/loggingconfig.py
Outdated
""" | ||
Initialize logging | ||
""" | ||
logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s') |
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.
For now I assume DEBUG is OK as default level. But do we want to keep it as default in the long run, or should rather INFO be the default level?
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.
The default is WARNING
. Given that this is a tool that is not running in a performance sensitive environment, INFO
would be a better default. In the future, we can make it configurable, by adding a verbose
flag to the CLI.
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.
Yes, would be easy to add flag (or env variable?) to control it.
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.
Yes. a command line arg is pretty common. Updated to INFO in this PR.
Update default log level to INFO
Fix reference to format name
Add command line arguments for structs