seqeralabs/tower-cli

'tw teams members add' not showing help text

Opened this issue · 0 comments

❌ The command below doesn't generate any help text:

$ tw teams members add -h
Missing required options: '--team=<teamName>', '--organization=<organizationRef>'

Usage: tw teams members [OPTIONS] [COMMAND]

List all team members.

Options:
* -t, --team=<teamName>                  Team name.
* -o, --organization=<organizationRef>   Organization name or identifier.
  -h, --help                             Show this help message and exit.
  -V, --version                          Print version information and exit.

Commands:
  add     Add a team member.
  delete  Delete a team member.

❌ Providing --team=kk--organization=kk

$ tw teams members add --team=kk--organization=kk

Missing required options: '--team=<teamName>', '--organization=<organizationRef>'

Usage: tw teams members [OPTIONS] [COMMAND]

List all team members.

Options:
* -t, --team=<teamName>                  Team name.
* -o, --organization=<organizationRef>   Organization name or identifier.
  -h, --help                             Show this help message and exit.
  -V, --version                          Print version information and exit.

Commands:
  add     Add a team member.
  delete  Delete a team member.

✅ You have to provide --team='kk' --organization='kk' and add -h has to come after those arguments to get the help text

tw teams members --team='kk' --organization='kk' add -h 

Usage: tw teams members add [OPTIONS]

Add a team member.

Options:
* -m, --member=<userNameOrEmail>   New member username or email.
  -h, --help                       Show this help message and exit.
  -V, --version                    Print version information and exit.

Be nice to refactor these positional arguments and help text to make it more intuitive.