kmadathil / sanskrit_parser

Parsers for Sanskrit / संस्कृतम्
MIT License
69 stars 21 forks source link

Help message is uninformative #132

Open kmadathil opened 4 years ago

kmadathil commented 4 years ago

Side effect of the new api - need to make the right help message come up too

$ scripts/sanskrit_parser vakya --help
unable to import 'smart_open.gcs', disabling that module
usage: sanskrit_parser [-h] [--debug] {sandhi,vakya,tags}

Sanskrit Parser

positional arguments:
  {sandhi,vakya,tags}  Subcommand to run

optional arguments:
  -h, --help           show this help message and exit
  --debug
avinashvarna commented 4 years ago

How about using a standard package like click, which appears to support nesting commands ?

kmadathil commented 4 years ago

Yes, we need a better package than argparse. click looks like a good option. I've committed a workaround for now, but this is another one which needs a good solution.

gasyoun commented 4 years ago

So this is a 2nd Sanskrit parser additional to Huet's?