sanskrit_parser icon indicating copy to clipboard operation
sanskrit_parser copied to clipboard

Help message is uninformative

Open kmadathil opened this issue 4 years ago • 3 comments

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

kmadathil avatar Apr 22 '20 00:04 kmadathil

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

avinashvarna avatar Apr 23 '20 06:04 avinashvarna

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.

kmadathil avatar Apr 24 '20 04:04 kmadathil

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

gasyoun avatar Apr 24 '20 21:04 gasyoun