mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-03 14:12:04 +03:00
cli: rename --extra-arg
-> --arg
This commit is contained in:
parent
c120dbe328
commit
6850db9cc4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user