diff options
author | Adrian Lane <adrian.lane@canonical.com> | 2020-04-03 11:48:34 -0700 |
---|---|---|
committer | Adrian Lane <adrian.lane@canonical.com> | 2020-04-03 11:48:34 -0700 |
commit | 1ac18b3ddd710f652090f3b1a5cc694bc063f898 (patch) | |
tree | 6c6a03442705b58e6928e06e774f4cec6174105a | |
parent | 69de5d9adc1b41b869172c4fb82468f80b7ab125 (diff) |
Minor syntax/comment changes
-rwxr-xr-x | bin/ipmi_test.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py index 9de4b5d..2d6d8b2 100755 --- a/bin/ipmi_test.py +++ b/bin/ipmi_test.py @@ -233,20 +233,19 @@ class IpmiTest(object): def main(): # instantiate argparse as parser parser = argparse.ArgumentParser() - parser.add_argument("-d", "--debug", action="store_true", - help="Debug/verbose output (stdout/stderr)") - parser.add_argument("-q", "--quiet", action="store_true", - help="Suppress output.") + parser.add_argument('-d', '--debug', action='store_true', + help='Debug/verbose output (stdout/stderr)') + parser.add_argument('-q', '--quiet', action='store_true', + help='Suppress output.') args = parser.parse_args() - # Set up the logging system + # logging subsystem if not args.quiet or args.debug: logger = logging.getLogger() logger.setLevel(logging.DEBUG) format = '' date_format = '%Y-%m-%d %H:%M:%S' - # If we DO want console output if not args.quiet: console_handler = logging.StreamHandler() console_handler.setFormatter( |