projects
/
gitmo/MooseX-Getopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1737660
)
-? is also accepted as a help option
Karen Etheridge [Thu, 30 Aug 2012 21:57:16 +0000 (14:57 -0700)]
lib/MooseX/Getopt.pm
patch
|
blob
|
blame
|
history
lib/MooseX/Getopt/GLD.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Getopt.pm
b/lib/MooseX/Getopt.pm
index
87084e1
..
f8bd879
100644
(file)
--- a/
lib/MooseX/Getopt.pm
+++ b/
lib/MooseX/Getopt.pm
@@
-200,6
+200,7
@@
information (and the option's state will be stored in the help_flag
attribute). You can add descriptions for each option by including a
B<documentation> option for each attribute to document.
+ -?
--?
--help
--usage
diff --git
a/lib/MooseX/Getopt/GLD.pm
b/lib/MooseX/Getopt/GLD.pm
index
17567b4
..
d5a49de
100644
(file)
--- a/
lib/MooseX/Getopt/GLD.pm
+++ b/
lib/MooseX/Getopt/GLD.pm
@@
-22,7
+22,7
@@
role {
traits => ['NoGetopt'],
);
- # captures the options: --help --usage --?
+ # captures the options: --help --usage --? -?
has help_flag => (
is => 'ro', isa => 'Bool',
traits => ['Getopt'],