Make process_list cli argument be -p, is way more logical

This commit is contained in:
flyingscorpio@arch-desktop 2021-01-03 03:50:22 +01:00
parent 7aa64e79dd
commit 21d5188e4e

View file

@ -475,17 +475,11 @@ def main() -> None:
help="Assume the program is not installed",
)
parser.add_argument(
"-F",
"-f",
"--force",
action="store_true",
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(
"-g",
"--generate",
@ -504,6 +498,12 @@ def main() -> None:
action="store_true",
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(
"-u",
"--update",
@ -522,10 +522,10 @@ def main() -> None:
first_install = args.first_install
force = args.force
from_file = args.from_file
generate = args.generate
hide_commands = args.hide_commands
list_programs = args.list_programs
process_list = args.process_list
update = args.update
installer = Installer(
@ -546,7 +546,7 @@ def main() -> None:
ui.info_1(program)
return
if from_file:
if process_list:
assert (
not programs
), "Can't use 'process_list.txt' if you also specify programs!"