Opened 11 years ago

Last modified 9 years ago

#574 new defect

IZ2729: some commands don't print an error message on unknown commandline options

Reported by: templedf Owned by:
Priority: low Milestone:
Component: sge Version: 6.2
Severity: Keywords: clients
Cc:

Description

[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=2729]

        Issue #:      2729             Platform:     All      Reporter: templedf (templedf)
       Component:     gridengine          OS:        All
     Subcomponent:    clients          Version:      6.2         CC:
                                                                        [_] reuti
                                                                        [_] Remove selected CCs
        Status:       REOPENED         Priority:     P4
      Resolution:                     Issue type:    DEFECT
                                   Target milestone: ---
      Assigned to:    roland (roland)
      QA Contact:     roland
          URL:
       * Summary:     some commands don't print an error message on unknown commandline options
   Status whiteboard:
      Attachments:

     Issue 2729 blocks:
   Votes for issue 2729:


   Opened: Tue Sep 16 13:02:00 -0700 2008 
------------------------


With the qsub command, -help is recognized, but --help is not.

   ------- Additional comments from reuti Tue Sep 16 13:26:11 -0700 2008 -------
Same stands for qconf, qdel, qrls and qhold, while others like qacct, qstat, qmod and qhost allow it.

   ------- Additional comments from joga Wed Sep 17 00:37:12 -0700 2008 -------
Not a defect.
We do not support the -- syntax.

If you really want it, please reopen as an enhancement ;-)

   ------- Additional comments from reuti Wed Sep 17 01:20:35 -0700 2008 -------
No, it's not really necessary, but then I would suggest to make it consistent and remove the --help from qacct, qstat, qmod and qhost.

   ------- Additional comments from joga Wed Sep 17 04:59:26 -0700 2008 -------
OK, problem is that qacct (and others) simply print the usage information on any
unknown option, without complaining about what actually was wrong.

Other commands (like qsub) correctly print
qsub: ERROR! invalid option argument "--help"

Make these commands (qacct, qdel, qstat, qmod, qhost, qping, qselect) print an
error message on unknown options, as well as the usage information.

Change History (0)

Note: See TracTickets for help on using tickets.