Commit a0077f6c authored by Vilem Ded's avatar Vilem Ded
Browse files

require some argument so the help is printed

parent 9a96b3f8
......@@ -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 = []
......
Markdown is supported
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