adityaka / misc_scripts

BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

While running the script prompts with an error #1

Open siddy15 opened 7 years ago

siddy15 commented 7 years ago

Debug$ python python.py -i JSONFILE XXX.json -o test2 usage: python.py [-h] [-i JSONFILE] [-o OUTDIR] python.py: error: unrecognized arguments: XXX.json

Maybe something to do here:

parser.add_argument("-i","--json-file",dest="jsonFile",help="path to DbDump.json file from the xenmobile file bundle") parser.add_argument("-o","--outdir",dest="outDir",help="output directory for the json files")

adityaka commented 7 years ago

There is a space in the name please ensure we don't have spaces in the name the script's argument check is working perfectly on a MAC and a linux I tested.