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

Complete help text with --help? #706

Closed
olgabot opened this issue Aug 1, 2019 · 3 comments
Closed

Complete help text with --help? #706

olgabot opened this issue Aug 1, 2019 · 3 comments
Labels

Comments

@olgabot
Copy link
Collaborator

olgabot commented Aug 1, 2019

Using this Dockerfile, I'm unable to get the full help text with the descriptions so nicely written in commands.py. No arguments, -h and --help all output the same help text, whereas I would expect --help to show the full description. Do you know why this is? Thank you!

(base) root@431eec5dfd0f:/home# sourmash compute -h
usage: sourmash [--protein] [--no-protein] [--dayhoff] [--no-dayhoff] [--dna]
                [--no-dna] [-q] [--input-is-protein] [-k KSIZES]
                [-n NUM_HASHES] [--check-sequence] [-f] [-o OUTPUT]
                [--singleton] [--merge MERGED] [--name-from-first]
                [--input-is-10x] [-p PROCESSES] [--track-abundance]
                [--scaled SCALED] [--seed SEED] [--randomize]
                [--license LICENSE]
                filenames [filenames ...]
sourmash: error: the following arguments are required: filenames
(base) root@431eec5dfd0f:/home# sourmash compute --help
usage: sourmash [--protein] [--no-protein] [--dayhoff] [--no-dayhoff] [--dna]
                [--no-dna] [-q] [--input-is-protein] [-k KSIZES]
                [-n NUM_HASHES] [--check-sequence] [-f] [-o OUTPUT]
                [--singleton] [--merge MERGED] [--name-from-first]
                [--input-is-10x] [-p PROCESSES] [--track-abundance]
                [--scaled SCALED] [--seed SEED] [--randomize]
                [--license LICENSE]
                filenames [filenames ...]
sourmash: error: the following arguments are required: filenames
(base) root@431eec5dfd0f:/home# sourmash compute
usage: sourmash [--protein] [--no-protein] [--dayhoff] [--no-dayhoff] [--dna]
                [--no-dna] [-q] [--input-is-protein] [-k KSIZES]
                [-n NUM_HASHES] [--check-sequence] [-f] [-o OUTPUT]
                [--singleton] [--merge MERGED] [--name-from-first]
                [--input-is-10x] [-p PROCESSES] [--track-abundance]
                [--scaled SCALED] [--seed SEED] [--randomize]
                [--license LICENSE]
                filenames [filenames ...]
@luizirber luizirber added the bug label Aug 23, 2019
@luizirber
Copy link
Member

ugh, this is because we don't do proper argparse subcommands... There is some discussion in #245 (review) on how to do this

@ctb
Copy link
Contributor

ctb commented Jan 8, 2020

I think this is much simpler now that #785 is merged!

@ctb
Copy link
Contributor

ctb commented Jan 12, 2020

I believe this was fixed in #785!

@ctb ctb closed this as completed Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants