Skip to content
Snippets Groups Projects

Allow parsing of unknown arguments

2 files
+ 9
1
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
1
@@ -771,7 +771,8 @@ class BaseApp: # pylint: disable=locally-disabled,too-many-public-methods, too-
:rtype: dict
"""
# Actually process command line arguments.
cli_cfgs = vars(argparser.parse_args())
cli_cfgs, unkw = argparser.parse_known_args()
cli_cfgs = vars(cli_cfgs)
# Immediatelly check for debug flag.
if cli_cfgs.get(self.CONFIG_DEBUG, False):
Loading