Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-88439

rhc should return non zero exit code when invalid options used.

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.1
    • rhel-10.0
    • rhc
    • None
    • rhc-0.3.2-1.el10
    • No
    • Low
    • subs-client-tools
    • 5
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      rhc should return exit code 1 if invalid CLI options are provided to command. 

      [root@dell-r640-012 integration-tests]# rhc connect {}username abc{-}    --activation-key testing
      --username and --activation-key can not be used together
      [root@dell-r640-012 integration-tests]# echo $?
      0
      [root@dell-r640-012 integration-tests]

      Please provide the package NVR for which the bug is seen:

      rhc-0.3.1-2.el10.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. # rhc connect {}username abc{}    -activation-key testing

      Expected results

      exit code should be 1

      Actual results

      exit code is 0

              jhnidek@redhat.com Jiri Hnidek
              rhn-arpandey Archana Pandey
              Joe VLcek
              CSI Client Tools Bugs Bot CSI Client Tools Bugs Bot
              Archana Pandey Archana Pandey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: