mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00
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.
This commit is contained in:
parent
128675770c
commit
f6f7c69023
Notes:
github-actions[bot]
2025-06-04 21:35:24 +00:00
Author: https://github.com/nicolasdanelon 🔰
Commit: f6f7c69023
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4998
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
# Copyright (c) 2025, ayeteadoe <ayeteadoe@gmail.com>
|
||||
# Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
||||
# Copyright (c) 2025, Nicolas Danelon <nicolasdanelon@gmail.com>
|
||||
#
|
||||
# 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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue