mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Allow --ver option
This commit is contained in:
parent
d89cab923f
commit
7af93bc8a3
@ -50,6 +50,8 @@ def waf_entry_point(current_directory, version, wafdir):
|
||||
sys.argv.pop(1)
|
||||
|
||||
ctx = Context.create_context('options')
|
||||
# allow --ver option in user scripts #2453
|
||||
ctx.parser.allow_abbrev = False
|
||||
(options, commands) = ctx.parse_cmd_args(allow_unknown=True)
|
||||
if options.version:
|
||||
print('%s %s (%s)'%(Context.WAFNAME, Context.WAFVERSION, Context.WAFREVISION))
|
||||
|
Loading…
Reference in New Issue
Block a user