From: Christoph Gysin Date: Sun, 5 Nov 2017 21:27:31 +0000 (+0200) Subject: getopt: load profile from args X-Git-Tag: 1.3~7^2~2 X-Git-Url: https://git.donarmstrong.com/?p=deb_pkgs%2Fautorandr.git;a=commitdiff_plain;h=e176ffa24a71d0e4e005f6adc053dcd2cf3cbed7 getopt: load profile from args --- diff --git a/autorandr.py b/autorandr.py index 119500b..e5ab42f 100755 --- a/autorandr.py +++ b/autorandr.py @@ -1072,6 +1072,8 @@ def main(argv): options["--load"] = options["-l"] if "--load" in options: load_profile = options["--load"] + elif len(args) == 1: + load_profile = args[0] else: # Find the active profile(s) first, for the block script (See #42) current_profiles = []