From f6f7c6902372267692ef5f43cd060ecf259554ad Mon Sep 17 00:00:00 2001 From: Nicolas Danelon Date: Wed, 4 Jun 2025 17:12:53 +0200 Subject: [PATCH] Meta: Add missing 'args' argument to install command parser The install command was failing with 'Namespace object has no attribute args' error because the argument parser for the install command was missing the 'args' parameter that allows passing additional arguments to the build system. This fix adds the missing argument to match the behavior of other commands like build, run, and debug. --- Meta/ladybird.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Meta/ladybird.py b/Meta/ladybird.py index 373cccf9d61..7833d14179e 100755 --- a/Meta/ladybird.py +++ b/Meta/ladybird.py @@ -2,6 +2,7 @@ # Copyright (c) 2025, ayeteadoe # Copyright (c) 2025, Tim Flynn +# Copyright (c) 2025, Nicolas Danelon # # SPDX-License-Identifier: BSD-2-Clause @@ -83,10 +84,14 @@ def main(): "args", nargs=argparse.REMAINDER, help="Additional arguments passed through to the build system" ) - subparsers.add_parser( + install_parser = subparsers.add_parser( "install", help="Installs the target binary", parents=[preset_parser, compiler_parser, target_parser] ) + install_parser.add_argument( + "args", nargs=argparse.REMAINDER, help="Additional arguments passed through to the build system" + ) + subparsers.add_parser("vcpkg", help="Ensure that dependencies are available", parents=[preset_parser]) subparsers.add_parser("clean", help="Cleans the build environment", parents=[preset_parser])