From bba4ec63c4b0699b7f7ffb20e4f37af2b996d355 Mon Sep 17 00:00:00 2001 From: Naushir Patuck Date: Mon, 20 Nov 2023 13:54:28 +0000 Subject: controls: Update argument handling for controls generation scripts The template file to the gen-controls.py and gen-py-controls.py is now passed in through the '-t' or '--template' command line argument instead of being a positional argument. This will allow multiple input files to be provided to the scripts in a future commit. Signed-off-by: Naushir Patuck Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham --- src/py/libcamera/gen-py-controls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/py/libcamera/gen-py-controls.py') diff --git a/src/py/libcamera/gen-py-controls.py b/src/py/libcamera/gen-py-controls.py index dfd7c179..cfcfd4d1 100755 --- a/src/py/libcamera/gen-py-controls.py +++ b/src/py/libcamera/gen-py-controls.py @@ -93,10 +93,10 @@ def main(argv): help='Mode is either "controls" or "properties"') parser.add_argument('--output', '-o', metavar='file', type=str, help='Output file name. Defaults to standard output if not specified.') + parser.add_argument('--template', '-t', type=str, required=True, + help='Template file name.') parser.add_argument('input', type=str, help='Input file name.') - parser.add_argument('template', type=str, - help='Template file name.') args = parser.parse_args(argv[1:]) if args.mode not in ['controls', 'properties']: -- cgit v1.2.1