mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-17 23:27:49 -06:00
fix: set the raw error flag in one place
The test called main and left --offline and the WSL probe behind for the tests after it. say_raw_errors holds the rule, and the test calls it alone.
This commit is contained in:
1 parent
482260f599
commit
498fa5cb11
5 files changed
+23
-25
No files matched your search
+10
-6
@@ -14245,17 +14245,21 @@ def build_parser() -> argparse.ArgumentParser:
|
||||
return parser
|
||||
|
||||
|
||||
def say_raw_errors(verbose: bool) -> None:
|
||||
"""Each run says errors from its own options: a run with --verbose before
|
||||
it in the same process left every later message with its raw cause."""
|
||||
if verbose:
|
||||
_RAW_ERRORS.set()
|
||||
else:
|
||||
_RAW_ERRORS.clear()
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Entry point."""
|
||||
_INVOCATION.os_type = detect_os()
|
||||
parser = build_parser()
|
||||
args = parser.parse_args()
|
||||
# Each run says it from its own options: a run with --verbose before it
|
||||
# in the same process left every later message with its raw cause.
|
||||
if args.verbose:
|
||||
_RAW_ERRORS.set()
|
||||
else:
|
||||
_RAW_ERRORS.clear()
|
||||
say_raw_errors(args.verbose)
|
||||
if args.cores_dir:
|
||||
args.installed_cores = True
|
||||
if args.yes:
|
||||
|
||||
Reference in new issue
Block a user