diff --git a/osbuild/main_cli.py b/osbuild/main_cli.py index 1fa1f6a0..40f55da7 100644 --- a/osbuild/main_cli.py +++ b/osbuild/main_cli.py @@ -69,7 +69,7 @@ def parse_arguments(sys_argv: List[str]) -> argparse.Namespace: parser.add_argument("manifest_path", metavar="MANIFEST", help="json file containing the manifest that should be built, or a '-' to read from stdin") - parser.add_argument("--store", "--cache", metavar="DIRECTORY", type=os.path.abspath, + parser.add_argument("--cache", "--store", metavar="DIRECTORY", type=os.path.abspath, default=".osbuild", help="directory where sources and intermediary os trees are stored") parser.add_argument("-l", "--libdir", metavar="DIRECTORY", type=os.path.abspath, default="/usr/lib/osbuild", @@ -168,7 +168,7 @@ def osbuild_cli() -> int: monitor_name = "NullMonitor" if (args.json or args.quiet) else "LogMonitor" try: - with ObjectStore(args.store) as object_store: + with ObjectStore(args.cache) as object_store: if args.cache_max_size is not None: object_store.maximum_size = args.cache_max_size