mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 01:46:15 +01:00
Options: set argparse conflict_handler in constructor
This commit is contained in:
parent
0c0f49ce6f
commit
bba5047716
@ -41,10 +41,9 @@ class ArgParser(argparse.ArgumentParser):
|
||||
Command-line options parser.
|
||||
"""
|
||||
def __init__(self, ctx):
|
||||
argparse.ArgumentParser.__init__(self, add_help=False)
|
||||
argparse.ArgumentParser.__init__(self, add_help=False, conflict_handler='resolve')
|
||||
self.ctx = ctx
|
||||
self.usage = self.get_usage()
|
||||
self.conflict_handler = 'resolve'
|
||||
|
||||
def _get_formatter(self):
|
||||
"""Initialize the argument parser to the adequate terminal width"""
|
||||
|
Loading…
Reference in New Issue
Block a user