UiPath / uipathcli

Command line interface to simplify, script and automate API calls for UiPath services (preview)
MIT License
61 stars 5 forks source link

Different outputs for -h and --help flags #117

Closed stefan-tataran-uipath closed 1 month ago

stefan-tataran-uipath commented 1 month ago

Using the help flag has different outputs if using the short form vs the long form.

When running the cli with the -h flag you get the following output:

NAME:
   uipath - Command-Line Interface for UiPath Services

USAGE:
   uipath <service> <operation> --parameter

COMMANDS:
   autocomplete
   config

GLOBAL OPTIONS:
   --debug               Enable debug output (default: false) [%UIPATH_DEBUG%]
   --profile value       Config profile to use (default: "default") [%UIPATH_PROFILE%]
   --uri value           Server Base-URI [%UIPATH_URI%]
   --organization value  Organization name [%UIPATH_ORGANIZATION%]
   --tenant value        Tenant name [%UIPATH_TENANT%]
   --insecure            Disable HTTPS certificate check (default: false) [%UIPATH_INSECURE%]
   --output value        Set output format: json (default), text [%UIPATH_OUTPUT%]
   --query value         Perform JMESPath query on output
   --wait value          Waits for the provided condition (JMESPath expression)
   --wait-timeout value  Time to wait in seconds for condition (default: 30)
   --file value          Provide input from file (use - for stdin)
   --identity-uri value  Identity Server URI [%UIPATH_IDENTITY_URI%]
   --version value       Specific service version [%UIPATH_VERSION%]
   --help, -h            show help

When running the cli with the --help flag you get the following output:

NAME:
   uipath - Command-Line Interface for UiPath Services

USAGE:
   uipath <service> <operation> --parameter

COMMANDS:
   du
   identity
   orchestrator
   autocomplete
   config

GLOBAL OPTIONS:
   --debug               Enable debug output (default: false) [%UIPATH_DEBUG%]
   --profile value       Config profile to use (default: "default") [%UIPATH_PROFILE%]
   --uri value           Server Base-URI [%UIPATH_URI%]
   --organization value  Organization name [%UIPATH_ORGANIZATION%]
   --tenant value        Tenant name [%UIPATH_TENANT%]
   --insecure            Disable HTTPS certificate check (default: false) [%UIPATH_INSECURE%]
   --output value        Set output format: json (default), text [%UIPATH_OUTPUT%]
   --query value         Perform JMESPath query on output
   --wait value          Waits for the provided condition (JMESPath expression)
   --wait-timeout value  Time to wait in seconds for condition (default: 30)
   --file value          Provide input from file (use - for stdin)
   --identity-uri value  Identity Server URI [%UIPATH_IDENTITY_URI%]
   --version value       Specific service version [%UIPATH_VERSION%]
   --help, -h            show help

Notice that for -h the COMMANDS section is missing some values