Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lddtool --help output #853

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Fix lddtool --help output #853

merged 2 commits into from
Dec 10, 2024

Conversation

jordanpadams
Copy link
Member

@jordanpadams jordanpadams commented Dec 10, 2024

🗒️ Summary

Per #849, fixed output from lddtool --help

⚙️ Test Data and/or Report

$ lddtool --help
usage: LDDTool [-h] [-p] [-l] [-d] [-D] [-J] [-m] [-M] [-n] [-N] [-1] [-T] [-O] [-o] [-C] [-v]
               [-V {1B00,1B10,1C00,1D00,1E00,1F00,1G00,1H00,1I00,1J00,1K00,1L00,1M00,1N00}]
               [fileNameArr [fileNameArr ...]]

LDDTool process control:

positional arguments:
  fileNameArr            Ingest_LDD files to process.

named arguments:
  -h, --help             show this help message and exit
  -p, --PDS4 processing  Set the context to PDS4 (default: false)
  -l, --LDD              Process one or more local data dictionary input files (default: false)
  -d, --discipline       Omit the term "mission" from  the  namespace of a dictionary (default:
                         false)
  -D, --DataDict         Write the Data Dictionary DocBook file (default: false)
  -J, --JSON             Write the data dictionary to a JSON formatted file (default: false)
  -m, --merge            Generate  file  to  merge  the   local   dictionary  into  the  master
                         dictionary (default: false)
  -M, --Mission          This option has no effect starting  with PDS4 IM Version 1.14.0.0. See
                         the LDDTool Usage document  for  more  information  on  how to provide
                         this information. (default: false)
  -n, --nuance           Write nuance property maps to LDD  schema annotation in JSON (default:
                         false)
  -N, --Namespace        Print the list of configured namespaces to the log (default: false)
  -1, --IM Spec          Write the Information Model Specification for an LDD (default: false)
  -T, --TermMap          Terminological mapping to alternate names (default: false)
  -O, --OWL/RDF/TTL      OWL/RDF/TTL output in TTL format (IM Classification) (default: false)
  -o, --OWL/RDF          OWL/RDF output in RDF format (IM Export) (default: false)
  -C, --Custom           Customized processing and reporting (default: false)
  -v, --version          Returns the LDDTool version number (default: false)
  -V {1B00,1B10,1C00,1D00,1E00,1F00,1G00,1H00,1I00,1J00,1K00,1L00,1M00,1N00}, --IM Version {1B00,1B10,1C00,1D00,1E00,1F00,1G00,1H00,1I00,1J00,1K00,1L00,1M00,1N00}
                         Set the IM Version (default: 1N00)

>>  INFO Exit(0)

♻️ Related Issues

Resolves #849

internally for HelpScreenException exception. Also added System.exit(0)
and System.exit(1) and removed "throw e".
@jordanpadams jordanpadams merged commit fc08ef4 into main Dec 10, 2024
3 checks passed
@jordanpadams jordanpadams deleted the 251203_lddtool_h_overwrites branch December 10, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lddtool -h returns expected information twice and then error messages
2 participants