From 21d5188e4e0d4a4effca48edf6759895bb25ba59 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Sun, 3 Jan 2021 03:50:22 +0100 Subject: [PATCH] Make process_list cli argument be -p, is way more logical --- install.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/install.py b/install.py index 0d14bd1..db32988 100755 --- a/install.py +++ b/install.py @@ -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!"