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