glassfish
  1. glassfish
  2. GLASSFISH-20756

Incorrect command name in command-line message

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None
    • Environment:

      OS
      Windows 7 Enterprise (Service Pack 1)

      JDK
      java version "1.7.0_11"
      Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
      Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

      Description

      Reproducible operational steps:

      1) run any asadmin subcommand with a valid common option
      asadmin --echo=false get server.admin-service.das-config.admin-session-timeout-in-minutes
      server.admin-service.das-config.admin-session-timeout-in-minutes=60
      Command get executed successfully.

      As you can see that the subcommand "get" is displayed correctly.

      2) run any asadmin subcommand with an invalid common option
      asadmin --echo=hope get server.admin-service.das-config.admin-session-timeout-in-minutes
      Invalid boolean value for option: echo, Value: hope
      Usage: asadmin [-H|--host <host(default:localhost)>]
      [-p|--port <port(default:4848)>] [-u|--user <user(default:admin)>]
      [-W|--passwordfile <passwordfile>]
      [t|-terse[=<terse(default:false)>]]
      [s|-secure[=<secure(default:false)>]]
      [e|-echo[=<echo(default:false)>]]
      [I|-interactive[=<interactive(default:true)>]]
      [?|-help[=<help(default:false)>]
      [--detach(default:false)] [subcommand [options] [operands]]
      Command --echo=hope failed.

      As you can see, the subcommand "get" is not displayed correctly. It shows "Command --echo=hope failed".

      I guess the error handling in command-line takes the first invalid common option "--echo=hope" as a subcommand name.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Chris Kasso
            Reporter:
            xianwu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: