diff --git a/README.md b/README.md index e74da3f..e00f2ba 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,12 @@ All users and developers of the NASA-PDS software are expected to abide by our [ ```create-titan-treks-pds4``` - * `create_titan_treks_pds4.py` has 3 paramaters to customize the script + * `create-titan-treks-pds4` has 3 paramaters to customize the script `-d DEST, --destination-directory DEST` Destination to save the pds4 xml labels, default `xml_files/product_service` `-s, --save-xml` Save the xml files to the destination folder, deafult `True` `-v, --verbose` Verbose, default `False` + * These can also be seen with the command: + ```create-titan-treks-pds4 --help``` ## Development diff --git a/src/pds/registry/utils/titan_treks/create_titan_treks_pds4.py b/src/pds/registry/utils/titan_treks/create_titan_treks_pds4.py index 1daca71..b19833c 100644 --- a/src/pds/registry/utils/titan_treks/create_titan_treks_pds4.py +++ b/src/pds/registry/utils/titan_treks/create_titan_treks_pds4.py @@ -32,12 +32,11 @@ def main(): default=False) args = parser.parse_args() - config = vars(args) # parse args - save_xml = config['save_xml'] - dest = config['destination_directory'] - verbose = config['verbose'] + save_xml = args.save_xml + dest = args.destination_directory + verbose = args.verbose # create destination path if it does not exist if save_xml: