def add_parser_arguments()

in idb/cli/commands/launch.py [0:0]


    def add_parser_arguments(self, parser: ArgumentParser) -> None:
        parser.add_argument(
            "bundle_id", help="Bundle id of the app to launch", type=str
        )
        parser.add_argument(
            "app_arguments",
            help="Arguments to start the app with",
            default=[],
            nargs=REMAINDER,
        )
        parser.add_argument(
            "-d",
            "--wait-for-debugger",
            help="Suspend application right after the launch to facilitate attaching of a debugger (ex, lldb).",
            action="store_true",
        )
        parser.add_argument(
            "-f",
            "--foreground-if-running",
            help="If the app is already running foreground that process",
            action="store_true",
        )
        parser.add_argument(
            "-w",
            "--wait-for",
            help="Wait for the process to exit, tailing all output from the app",
            action="store_true",
        )
        parser.add_argument(
            "-p",
            "--pid-file",
            help="launched app pid will be written into the specified file",
            type=str,
        )
        super().add_parser_arguments(parser)