Uploaded image for project: 'JBoss Server Migration Tool'
  1. JBoss Server Migration Tool
  2. CMTOOL-162

Server migrate tool returs "1" code on --help

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.CR1, 1.0.4.Final
    • 1.0.3.Final
    • None
    • 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
            jondruse@redhat.com Jiri Ondrusek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: