Skip to content

Commit

Permalink
Fix that specific log levels are not displayed when using --help
Browse files Browse the repository at this point in the history
  • Loading branch information
maoyixie committed Nov 28, 2024
1 parent 44d7a1e commit 2a97cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_all_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

WORK_DIR = ''

LOG_LEVELS = {'debug', 'info'}
LOG_LEVELS = ['debug', 'info']
LOG_FMT = ('%(asctime)s.%(msecs)03d %(levelname)s '
'%(module)s - %(funcName)s: %(message)s')

Expand Down Expand Up @@ -223,7 +223,7 @@ def parse_args() -> argparse.Namespace:
parser.add_argument(
'-lo',
'--log-level',
help='Sets the logging level. Options available: [{LOG_LEVELS}]',
help=f'Sets the logging level. Options available: {", ".join(LOG_LEVELS)}',
default='info')
parser.add_argument(
'-of',
Expand Down

0 comments on commit 2a97cc2

Please sign in to comment.