Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4572

[CLI] Kubernetes mode - delete should fail without subcommand

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • RHDG 8.3 CD
    • RHDG 8.2 CD
    • CLI
    • None

      If user executes `oc infinispan delete` nothing happens. Since it isn't technically a valid command as it's missing subcommand it should fail with corresponding message. Commands that do not print output upon execution are generally considered as successful.

      The help for delete command should also make it clear that subcommand is required.

      $ ./oc infinispan delete
      $ ./oc infinispan delete -h
      Usage: kube delete [<options>]
      Deletes a resource
      
      Options:
        -h, --help
      
      delete commands:
          cluster  Deletes a cluster
      

            ttarrant@redhat.com Tristan Tarrant
            pdrobek@redhat.com Pavel Drobek
            Pavel Drobek Pavel Drobek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: