cli: rename --extra-arg -> --arg

This commit is contained in:
DavHau 2021-11-01 11:46:17 +07:00
parent c120dbe328
commit 6850db9cc4

View File

@ -38,7 +38,7 @@ class PackageCommand(Command):
flag=True
),
option(
"extra-arg",
"arg",
None,
"extra arguments for selected translator",
flag=False,
@ -56,7 +56,7 @@ class PackageCommand(Command):
specified_extra_args = {
arg[0]: arg[1] for arg in map(
lambda e: e.split('='),
self.option("extra-arg"),
self.option("arg"),
)
}
@ -267,7 +267,7 @@ class PackageCommand(Command):
] + (
["--combined"] if combined else []
) + [
f"--extra-arg {n}={v}" for n, v in specified_extra_args.items()
f"--arg {n}={v}" for n, v in specified_extra_args.items()
])
# add main package source