Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13439

(7.1.z) CMTOOL-162 - Server migrate tool returns "1" code on --help

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.2.CR1, 7.1.2.GA
    • 7.1.0.CR2
    • Migration
    • None

      It's common practice for tools to return "0" exit code on --help.

      [pkremens@localhost bin] $ ls --help &> /dev/null ; echo $?
      0
      [pkremens@localhost bin] $ ./standalone.sh --help &> /dev/null ; echo $?
      0
      [pkremens@localhost bin] $ ./jboss-cli.sh --help &> /dev/null ; echo $?
      0
      

      This is not true for server migration tool though.
      actual

      [pkremens@localhost bin] $ ./jboss-server-migration.sh --help &> /dev/null ; echo $?
      1
      

      expected

      [pkremens@localhost bin] $ ./jboss-server-migration.sh --help &> /dev/null ; echo $?
      0
      

            jondruse@redhat.com Jiri Ondrusek
            pkremens@redhat.com Petr Kremensky (Inactive)
            Peter Mackay Peter Mackay
            Peter Mackay Peter Mackay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: