Path 1: 19 calls (0.95)

'root' (13) 'cli' (3) 'flask' (3)

['routes'] (6) ['test'] (3) ['--help'] (2) ['check', 'x'] (1) ['show'] (1) ['missing'] (1) ['routes', '-s', 'endpoint'] (1) ['routes', '-s', 'methods'...

None (18) Context (1)

{} (19)

Context (17) None (2)

Exit (2)

1def make_context(
2        self,
3        info_name: str | None,
4        args: list[str],
5        parent: click.Context | None = None,
6        **extra: t.Any,
7    ) -> click.Context:
8        # Set a flag to tell app.run to become a no-op. If app.run was
9        # not in a __name__ == __main__ guard, it would start the server
10        # when importing, blocking whatever command is being called.
11        os.environ["FLASK_RUN_FROM_CLI"] = "true"
12
13        # Attempt to load .env and .flask env files. The --env-file
14        # option can cause another file to be loaded.
15        if get_load_dotenv(self.load_dotenv):
16            load_dotenv()
17
18        if "obj" not in extra and "obj" not in self.context_settings:
19            extra["obj"] = ScriptInfo(
20                create_app=self.create_app, set_debug_flag=self.set_debug_flag
21            )
22
23        return super().make_context(info_name, args, parent=parent, **extra)
            

Path 2: 1 calls (0.05)

'root' (1)

[] (1)

None (1)

{} (1)

None (1)

Exit (1)

1def make_context(
2        self,
3        info_name: str | None,
4        args: list[str],
5        parent: click.Context | None = None,
6        **extra: t.Any,
7    ) -> click.Context:
8        # Set a flag to tell app.run to become a no-op. If app.run was
9        # not in a __name__ == __main__ guard, it would start the server
10        # when importing, blocking whatever command is being called.
11        os.environ["FLASK_RUN_FROM_CLI"] = "true"
12
13        # Attempt to load .env and .flask env files. The --env-file
14        # option can cause another file to be loaded.
15        if get_load_dotenv(self.load_dotenv):
16            load_dotenv()
17
18        if "obj" not in extra and "obj" not in self.context_settings:
19            extra["obj"] = ScriptInfo(
20                create_app=self.create_app, set_debug_flag=self.set_debug_flag
21            )
22
23        return super().make_context(info_name, args, parent=parent, **extra)