Revert "fix the error when mix-use the cache-show and help option"
This reverts commit d044e9f642
.
This commit is contained in:
parent
032551a336
commit
e7f431e7dd
|
@ -1074,12 +1074,6 @@ class Config:
|
||||||
)
|
)
|
||||||
|
|
||||||
raise
|
raise
|
||||||
except PrintHelp:
|
|
||||||
self._parser._getparser().print_help()
|
|
||||||
sys.stdout.write(
|
|
||||||
"\nNOTE: displaying only minimal help due to UsageError.\n\n"
|
|
||||||
)
|
|
||||||
raise UsageError
|
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@ -1374,7 +1368,7 @@ class Config:
|
||||||
self.args = args
|
self.args = args
|
||||||
self.args_source = source
|
self.args_source = source
|
||||||
except PrintHelp:
|
except PrintHelp:
|
||||||
raise
|
pass
|
||||||
|
|
||||||
def issue_config_time_warning(self, warning: Warning, stacklevel: int) -> None:
|
def issue_config_time_warning(self, warning: Warning, stacklevel: int) -> None:
|
||||||
"""Issue and handle a warning during the "configure" stage.
|
"""Issue and handle a warning during the "configure" stage.
|
||||||
|
|
Loading…
Reference in New Issue