osbuild/cli: prefer --cache over --store
Make primary name of the cache/store argument 'cache'. Let's start preferring it.
This commit is contained in:
parent
db7867833a
commit
1a529d78a9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue