nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06a2a00
)
lib: add value_name to OptionEnum to get the selected name
author
Jean-Sebastien Gelinas
<calestar@gmail.com>
Thu, 3 Sep 2009 20:44:33 +0000
(16:44 -0400)
committer
Jean Privat
<jean@pryen.org>
Fri, 11 Sep 2009 17:54:16 +0000
(13:54 -0400)
Signed-off-by: Jean-Sebastien Gelinas <calestar@gmail.com>
Signed-off-by: Jean Privat <jean@pryen.org>
lib/opts.nit
patch
|
blob
|
history
diff --git
a/lib/opts.nit
b/lib/opts.nit
index
1673215
..
2850507
100644
(file)
--- a/
lib/opts.nit
+++ b/
lib/opts.nit
@@
-151,6
+151,8
@@
special OptionParameter
return id
end
+ fun value_name: String = _enum[value]
+
redef fun pretty_default
do
if default_value != null then