sanskrit_parser
sanskrit_parser copied to clipboard
Help message is uninformative
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
How about using a standard package like click, which appears to support nesting commands ?
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.
So this is a 2nd Sanskrit parser additional to Huet's?