MCPcopy Create free account
hub / github.com/pallets/flask / parse_args

Method parse_args

src/flask/cli.py:686–694  ·  view source on GitHub ↗
(self, ctx: click.Context, args: list[str])

Source from the content-addressed store, hash-verified

684 return super().make_context(info_name, args, parent=parent, **extra)
685
686 def parse_args(self, ctx: click.Context, args: list[str]) -> list[str]:
687 if not args and self.no_args_is_help:
688 # Attempt to load --env-file and --app early in case they
689 # were given as env vars. Otherwise no_args_is_help will not
690 # see commands from app.cli.
691 _env_file_option.handle_parse_result(ctx, {}, [])
692 _app_option.handle_parse_result(ctx, {}, [])
693
694 return super().parse_args(ctx, args)
695
696
697def _path_is_ancestor(path: str, other: str) -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected