Config.get_arguments_parser: allow to override argparse description
This commit is contained in:
parent
afdb1430a6
commit
366260e92a
1 changed files with 2 additions and 1 deletions
|
@ -542,7 +542,8 @@ class Config:
|
||||||
return self.options_parser
|
return self.options_parser
|
||||||
|
|
||||||
self.options_parser = argparse.ArgumentParser(
|
self.options_parser = argparse.ArgumentParser(
|
||||||
description=self.appname, **kwargs)
|
description=kwargs.pop('description', self.appname),
|
||||||
|
**kwargs)
|
||||||
|
|
||||||
self.options_parser.add_argument(
|
self.options_parser.add_argument(
|
||||||
'-c',
|
'-c',
|
||||||
|
|
Loading…
Reference in a new issue