Revert "fix the error when mix-use the cache-show and help option"

This reverts commit d044e9f642.
This commit is contained in:
markshao 2022-12-24 15:22:18 +08:00
parent 032551a336
commit e7f431e7dd
1 changed files with 1 additions and 7 deletions

View File

@ -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.