aCLImatise / CliHelpParser

Reads the output from CLI help commands, and generates machine readable schemas (CWL etc)
https://aclimatise.github.io/CliHelpParser/
GNU General Public License v3.0
14 stars 5 forks source link

Avoid repeating subcommand testing #41

Closed multimeric closed 4 years ago

multimeric commented 4 years ago

For example, typeHLA.js in the bwakit package:

INFO:acclimatise:Trying flags for typeHLA.js int
INFO:acclimatise:Trying typeHLA.js int --help
INFO:acclimatise:Trying typeHLA.js int -h
INFO:acclimatise:Trying typeHLA.js int
INFO:acclimatise:Trying typeHLA.js int --usage
INFO:acclimatise:The best help flag seems to be typeHLA.js int --help
INFO:acclimatise:typeHLA.js int does not seem to be a valid subcommand
INFO:acclimatise:Exploring typeHLA.js int
INFO:acclimatise:Trying flags for typeHLA.js int
INFO:acclimatise:Trying typeHLA.js int --help
INFO:acclimatise:Trying typeHLA.js int -h
INFO:acclimatise:Trying typeHLA.js int
INFO:acclimatise:Trying typeHLA.js int --usage
INFO:acclimatise:The best help flag seems to be typeHLA.js int --help
INFO:acclimatise:typeHLA.js int does not seem to be a valid subcommand
INFO:acclimatise:Exploring typeHLA.js int
INFO:acclimatise:Trying flags for typeHLA.js int
INFO:acclimatise:Trying typeHLA.js int --help
INFO:acclimatise:Trying typeHLA.js int -h
INFO:acclimatise:Trying typeHLA.js int
INFO:acclimatise:Trying typeHLA.js int --usage
INFO:acclimatise:The best help flag seems to be typeHLA.js int --help
INFO:acclimatise:typeHLA.js int does not seem to be a valid subcommand
INFO:acclimatise:Exploring typeHLA.js float
INFO:acclimatise:Trying flags for typeHLA.js float
INFO:acclimatise:Trying typeHLA.js float --help
INFO:acclimatise:Trying typeHLA.js float -h
INFO:acclimatise:Trying typeHLA.js float
INFO:acclimatise:Trying typeHLA.js float --usage
INFO:acclimatise:The best help flag seems to be typeHLA.js float --help
INFO:acclimatise:typeHLA.js float does not seem to be a valid subcommand
INFO:acclimatise:Exploring typeHLA.js string
INFO:acclimatise:Trying flags for typeHLA.js string
INFO:acclimatise:Trying typeHLA.js string --help
INFO:acclimatise:Trying typeHLA.js string -h
INFO:acclimatise:Trying typeHLA.js string
INFO:acclimatise:Trying typeHLA.js string --usage