IMAP-Science-Operations-Center / imap-data-access

Package to download, query, and upload files from the IMAP Science Data Center.
MIT License
0 stars 7 forks source link

MNT: Exit with a parser error from the CLI #31

Closed greglucas closed 2 months ago

greglucas commented 2 months ago

If there is an error currently we print out a long stack trace. We can change this to just print the error message through a parser error rather than via the full stack trace when using this package as a CLI utility.

Testing with just query and no parameters provides this output now.

imap-data-access query
usage: imap-data-access [-h] [--version] [--data-dir DATA_DIR] [--url URL] [--debug]
                        [-v]
                        {download,query,upload} ...
imap-data-access: error: At least one query parameter must be provided

closes #30