Make process_list cli argument be -p, is way more logical
This commit is contained in:
parent
7aa64e79dd
commit
21d5188e4e
1 changed files with 9 additions and 9 deletions
18
install.py
18
install.py
|
@ -475,17 +475,11 @@ def main() -> None:
|
||||||
help="Assume the program is not installed",
|
help="Assume the program is not installed",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-F",
|
"-f",
|
||||||
"--force",
|
"--force",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Overwrite existing files",
|
help="Overwrite existing files",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
"-f",
|
|
||||||
"--from_file",
|
|
||||||
action="store_true",
|
|
||||||
help="Use 'process_list.txt' as programs to process",
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-g",
|
"-g",
|
||||||
"--generate",
|
"--generate",
|
||||||
|
@ -504,6 +498,12 @@ def main() -> None:
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="List all programs from the configuration file",
|
help="List all programs from the configuration file",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"-p",
|
||||||
|
"--process_list",
|
||||||
|
action="store_true",
|
||||||
|
help="Use 'process_list.txt' as programs to process",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-u",
|
"-u",
|
||||||
"--update",
|
"--update",
|
||||||
|
@ -522,10 +522,10 @@ def main() -> None:
|
||||||
|
|
||||||
first_install = args.first_install
|
first_install = args.first_install
|
||||||
force = args.force
|
force = args.force
|
||||||
from_file = args.from_file
|
|
||||||
generate = args.generate
|
generate = args.generate
|
||||||
hide_commands = args.hide_commands
|
hide_commands = args.hide_commands
|
||||||
list_programs = args.list_programs
|
list_programs = args.list_programs
|
||||||
|
process_list = args.process_list
|
||||||
update = args.update
|
update = args.update
|
||||||
|
|
||||||
installer = Installer(
|
installer = Installer(
|
||||||
|
@ -546,7 +546,7 @@ def main() -> None:
|
||||||
ui.info_1(program)
|
ui.info_1(program)
|
||||||
return
|
return
|
||||||
|
|
||||||
if from_file:
|
if process_list:
|
||||||
assert (
|
assert (
|
||||||
not programs
|
not programs
|
||||||
), "Can't use 'process_list.txt' if you also specify programs!"
|
), "Can't use 'process_list.txt' if you also specify programs!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue