···2525 operation=lambda args: operations.from_session(args.session, args.profile_name)
2626 )
27272828+ launch = subparsers.add_parser("launch")
2929+ launch.add_argument(
3030+ "profile_name",
3131+ metavar="name",
3232+ nargs="?",
3333+ help="profile to launch. it will be created if it does not exist, unless -s is set",
3434+ )
3535+ launch.add_argument(
3636+ "-s",
3737+ "--strict",
3838+ action="store_true",
3939+ help="return an error if the profile does not exist",
4040+ )
4141+ launch.add_argument(
4242+ "-f",
4343+ "--foreground",
4444+ action="store_true",
4545+ help="launch qutebrowser in the foreground and print its stdout and stderr to the console",
4646+ )
4747+ launch.set_defaults(
4848+ operation=lambda args: operations.launch(
4949+ args.profile_name, args.strict, args.foreground
5050+ )
5151+ )
5252+2853 args = parser.parse_args()
2954 args.operation(args)