Skip to content

Commit

Permalink
Fix bug that doesn't work -v, -h option
Browse files Browse the repository at this point in the history
  • Loading branch information
bjk7119 committed Oct 18, 2022
1 parent c29baad commit 2950546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fosslight_prechecker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

def main():
parser = argparse.ArgumentParser(description='FOSSLight Prechecker', prog='fosslight_prechecker', add_help=False)
parser.add_argument('mode', help='lint | convert | add', choices=['lint', 'add', 'convert'])
parser.add_argument('mode', nargs='?', help='lint | convert | add', choices=['lint', 'add', 'convert'])
parser.add_argument('-h', '--help', help='Print help message', action='store_true', dest='help')
parser.add_argument('-i', '--ignore', help='Do not write log to file', action='store_false', dest='log')
parser.add_argument('-v', '--version', help='Print FOSSLight Prechecker version', action='store_true', dest='version')
Expand Down

0 comments on commit 2950546

Please sign in to comment.