nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools: generate version number and give it to tools
[nit.git]
/
src
/
mmloader.nit
diff --git
a/src/mmloader.nit
b/src/mmloader.nit
index
13adce2
..
6b44267
100644
(file)
--- a/
src/mmloader.nit
+++ b/
src/mmloader.nit
@@
-76,10
+76,13
@@
special MMContext
# Option --help
readable attr _opt_help: OptionBool = new OptionBool("Show Help (This screen)", "-h", "-?", "--help")
# Option --help
readable attr _opt_help: OptionBool = new OptionBool("Show Help (This screen)", "-h", "-?", "--help")
+ # Option --version
+ readable attr _opt_version: OptionBool = new OptionBool("Show version and exit", "--version")
+
init
do
super
init
do
super
- option_context.add_option(opt_warn, opt_path, opt_log, opt_only_parse, opt_only_metamodel, opt_help)
+ option_context.add_option(opt_warn, opt_path, opt_log, opt_only_parse, opt_only_metamodel, opt_help, opt_version)
end
# Parse and process the options given on the command line
end
# Parse and process the options given on the command line