Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
metadata-tools
Commits
a0077f6c
Commit
a0077f6c
authored
Mar 10, 2021
by
Vilem Ded
Browse files
require some argument so the help is printed
parent
9a96b3f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
metadata_tools/commands/export_xls_to_json.py
View file @
a0077f6c
...
...
@@ -24,12 +24,14 @@ parser.add_argument(
parser
.
add_argument
(
'-o'
,
'--output-dir'
,
help
=
'Path to the directory to store JSON files to'
,
default
=
"."
,
help
=
'Path to the directory to store JSON files to
.
'
,
required
=
True
,
dest
=
"output_dir"
)
args
=
parser
.
parse_args
()
if
not
(
args
.
dirname
or
args
.
file
):
parser
.
error
(
'No arguments provided. Either -d or -f must be specified'
)
fileList
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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