diff --git a/pungi/scripts/create_packages_json.py b/pungi/scripts/create_packages_json.py index 150fbd8e..c36f2b7d 100644 --- a/pungi/scripts/create_packages_json.py +++ b/pungi/scripts/create_packages_json.py @@ -300,6 +300,12 @@ def create_parser(): 'All of list elements should be separated by space', required=False, ) + parser.add_argument( + '--json-output-path', + type=str, + help='Full path to output json file', + required=True, + ) return parser @@ -326,7 +332,7 @@ def cli_main(): excluded_packages=args.excluded_packages, ) result = pg.generate_packages_json() - with open('packages.json', 'w') as packages_file: + with open(args.json_output_path, 'w') as packages_file: json.dump( result, packages_file,