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

Help message is uninformative #132

Open
kmadathil opened this issue Apr 22, 2020 · 3 comments
Open

Help message is uninformative #132

kmadathil opened this issue Apr 22, 2020 · 3 comments

Comments

@kmadathil
Copy link
Owner

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
Copy link
Collaborator

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

kmadathil added a commit that referenced this issue Apr 24, 2020
@kmadathil
Copy link
Owner Author

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
Copy link

gasyoun commented Apr 24, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants