tdviet / fedcloudclient

EGI FedCloud Client
https://fedcloudclient.fedcloud.eu
MIT License
8 stars 10 forks source link

Not all command options are shown with --help #69

Closed thebe14 closed 3 years ago

thebe14 commented 3 years ago

When you use the --help option, e.g. for fedcloud openstack --help the help message you get will detail all possible options (of this utility, I am not talking about OpenStack subcommands and their options). But when you try e.g. fedcloud site --help the site and VO options are not shown, although they apply and seem to be correctly linked in the code with decorators.

It seems that some subcommands are not shown either, e.g. fedcloud site env.

tdviet commented 3 years ago

Options: --help Show this message and exit.

Commands: env Generating OpenStack environment variables for site... list List site IDs save-config Read default site configs from GitHub and save them to... show Print configuration of the specified site show-all Print all site configuration show-project-id Printing Keystone endpoint and project ID of the VO on...


- The command `fedcloud site env --help` works on my computer. Try to make fresh install or update fedcloudclient to lattest version (currently 1.2.8)

fedcloud site env --help Usage: fedcloud site env [OPTIONS]

Generating OpenStack environment variables for site and VO Does not set OS token, need to set separately, e.g. via oidc-token command

Options: --site TEXT Name of the site or ALL_SITES [required] --vo TEXT Name of the VO [required] --help Show this message and exit.

thebe14 commented 3 years ago

You are right. I was trying fedcloud site --help which only shows the subcommands. But if I try help on a "final" command, then it shows the options.

thebe14 commented 3 years ago

Clarified, it works.