Skip to content

Commit 23d54b9

Browse files
authored
Merge pull request #104 from fosslight/develop
Fix to print argparse help msg if input no mode
2 parents bae6bdc + 7081616 commit 23d54b9

File tree

1 file changed

+1
-1
lines changed
  • src/fosslight_prechecker

1 file changed

+1
-1
lines changed

src/fosslight_prechecker/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

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

0 commit comments

Comments
 (0)