Skip to content

Commit

Permalink
remove config variable when parsing args
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Anikiej committed Jul 3, 2024
1 parent 9222ac9 commit a7211b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions src/pds/registry/utils/titan_treks/create_titan_treks_pds4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a7211b2

Please sign in to comment.