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

jcli help helper does not work with --host argument being passed #2405

Open
mark-stopka opened this issue Jun 21, 2020 · 0 comments
Open

jcli help helper does not work with --host argument being passed #2405

mark-stopka opened this issue Jun 21, 2020 · 0 comments

Comments

@mark-stopka
Copy link
Contributor

Describe the bug
If you try to navigate thru the REST API of Jormungandr --host needs to be passed to indicate the API target, using option --help with --host works just fine, but using help results in following error.

(cardano-jormungandr)[jormungandr@bcdc49f9a6ac /srv/cardano/jormungandr]$ jcli rest v0  help --host http://localhost:3100/api                                                                  
error: The subcommand '--host' wasn't recognized

USAGE:
        jcli rest v0 help <subcommands>...

For more information try --help
(cardano-jormungandr)[jormungandr@bcdc49f9a6ac /srv/cardano/jormungandr]$ 

Mandatory Information

  1. jcli --full-version output;
jcli --full-version
jcli 0.9.0-rc1 (master-2715361c, release, linux [x86_64]) - [rustc 1.44.1 (c7087fe00 2020-06-17)]
  1. jormungandr --full-version output;
jormungandr --full-version
jormungandr 0.9.0-rc1 (master-2715361c, release, linux [x86_64]) - [rustc 1.44.1 (c7087fe00 2020-06-17)]

To Reproduce
Description is pretty clear, but I provide example of using --help option below...

(cardano-jormungandr)[jormungandr@bcdc49f9a6ac /srv/cardano/jormungandr]$ jcli rest v0  --help --host http://localhost:3100/api
jcli-rest-v0 0.9.0-rc1
API version 0

USAGE:
    jcli rest v0 <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    account        Account operations
    block          Block operations
    diagnostic     System diagnostic information
    help           Prints this message or the help of the given subcommand(s)
    leaders        Node leaders operations
    message        Message sending
    network        Network information
    node           Node information
    rewards        Rewards information
    settings       Node settings
    shutdown       Shutdown node
    stake          Stake information
    stake-pool     Stake pool operations
    stake-pools    Stake pools operations
    tip            Blockchain tip information
    utxo           UTXO information
    vote           Vote related operations

Expected behavior
I would expect both help and --help to be treated the same even if --host is passed to jcli.

@mark-stopka mark-stopka changed the title jcli help helper does not work with --host argument being passed jcli help helper does not work with --host argument being passed Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant