junneyang / zumastor

Automatically exported from code.google.com/p/zumastor
0 stars 1 forks source link

-h option is overloaded for zumastor define volume #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. `zumastor define volume -h` 
2. Look at the usage information
3. Get confused

What is the expected output? What do you see instead?
-h should only be used once, it is instead used for --help and --hourly

Original issue reported on code.google.com by williama...@gmail.com on 21 Feb 2008 at 4:32

GoogleCodeExporter commented 9 years ago
Resolution: stop using -h for help.  -?|--help of for help.

Zumastor script needs to be updated uniformly.

Original comment by Daniel.R...@gmail.com on 26 Mar 2008 at 10:23

GoogleCodeExporter commented 9 years ago

Original comment by daniel.r...@gmail.com on 26 Mar 2008 at 10:35

GoogleCodeExporter commented 9 years ago
er, sorry.
see getopt(3C). The characters question-mark (?) and colon (:) must not be used 
as 
option characters by an application. 

Original comment by williama...@gmail.com on 8 Apr 2008 at 7:34

GoogleCodeExporter commented 9 years ago
"The characters question-mark (?) and colon (:) must not be used as 
option characters by an application"

True that.  Taking the lead from gcc, which supports only --help and not -h for 
the
obvious reason (don't pollute the single letter space with generic options) we 
can
just drop -h and rely entirely on --help.

Original comment by Daniel.R...@gmail.com on 8 Apr 2008 at 11:28

GoogleCodeExporter commented 9 years ago
Try this out.

Original comment by williama...@gmail.com on 14 Apr 2008 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
lgtm.

Jiaying

Original comment by jiayin...@gmail.com on 15 Apr 2008 at 2:09

GoogleCodeExporter commented 9 years ago

Original comment by williama...@gmail.com on 15 Apr 2008 at 3:00