Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pyromaths
pyromaths
Commits
0263ef9d
Commit
0263ef9d
authored
Oct 06, 2016
by
Louis
Browse files
Fix bug appearing when no exercice was given to `python -m pyromaths.cli generate`
parent
7c6742b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pyromaths/cli/__main__.py
View file @
0263ef9d
...
...
@@ -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'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment