glassfish
  1. glassfish
  2. GLASSFISH-12906

Need to provide all cli command with --usage as an option

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: command_line_interface
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,906

      Description

      Need to provide all cli command with "--usage" as an option.

      User either have to type the cli command with wrong option in order to get the
      available usage option.
      Or User have to either type -? or --help to get help version of the available
      option.

      ./asadmin export-http-lb-config -?
      ./asadmin export-http-lb-config --help

      We asadmin command have --usage as an option, it will provide a much better
      GlassFish user experience.

      Since user may only need hints of those available options.

      Instead of saying --usage is a "Invalid option".

      asadmin> export-http-lb-config --usage
      Invalid option: --usage
      Usage: asadmin [asadmin-utility-options] export-http-lb-config
      [--targets <targets>] [--config <config>] [--lbname <lbname>]
      [--property <property>] [?|-help[=<help(default:false)>]] file_name
      Command export-http-lb-config failed.

      asadmin> export-http-lb-config -?

      NAME :
      export-http-lb-config -

      SYNOPSIS :
      export-http-lb-config [--targets=targets] [--config=config]
      [--lbname=lbname] [--property=property] file_name

      OPTIONS :
      --lbname

      --targets

      --config

      --property

      OPERANDS :
      file_name -

      Command export-http-lb-config executed successfully.

      asadmin> export-http-lb-config --help

      NAME :
      export-http-lb-config -

      SYNOPSIS :
      export-http-lb-config [--targets=targets] [--config=config]
      [--lbname=lbname] [--property=property] file_name

      OPTIONS :
      --lbname

      --targets

      --config

      --property

      OPERANDS :
      file_name -

      Command export-http-lb-config executed successfully.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Bill Shannon
            Reporter:
            Homer Yau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: