Commit 0263ef9d authored by Louis's avatar Louis
Browse files

Fix bug appearing when no exercice was given to `python -m pyromaths.cli generate`

parent 7c6742b3
......@@ -73,8 +73,8 @@ def argument_parser():
generate_parser.add_argument(
"exercise",
metavar='EXERCISE[:SEED[,SEED]]',
nargs='*', type=exercise_argument, default=None,
help='Exercises to generate. If empty, all exercises are generated.'
nargs='+', type=exercise_argument, default=None,
help='Exercises to generate.'
)
generate_parser.add_argument(
'-p', '--pipe',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment