Method: flask.cli.FlaskGroup.parse_args
Calls: 20, Exceptions: 3, Paths: 2Back
Path 1: 19 calls (0.95)
Context (19)
['routes'] (6) ['test'] (3) ['--help'] (2) ['check', 'x'] (1) ['show'] (1) ['missing'] (1) ['routes', '-s', 'endpoint'] (1) ['routes', '-s', 'methods'...
[] (11) None (2) ['x'] (1) ['-s', 'endpoint'] (1) ['-s', 'methods'] (1) ['-s', 'rule'] (1) ['-s', 'match'] (1) ['--all-methods'] (1)
Exit (2)
1def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
2 if not args and self.no_args_is_help:
3 # Attempt to load --env-file and --app early in case they
4 # were given as env vars. Otherwise no_args_is_help will not
5 # see commands from app.cli.
6 _env_file_option.handle_parse_result(ctx, {}, [])
7 _app_option.handle_parse_result(ctx, {}, [])
8
9 return super().parse_args(ctx, args)
Path 2: 1 calls (0.05)
Context (1)
[] (1)
None (1)
Exit (1)
1def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
2 if not args and self.no_args_is_help:
3 # Attempt to load --env-file and --app early in case they
4 # were given as env vars. Otherwise no_args_is_help will not
5 # see commands from app.cli.
6 _env_file_option.handle_parse_result(ctx, {}, [])
7 _app_option.handle_parse_result(ctx, {}, [])
8
9 return super().parse_args(ctx, args)