From e176ffa24a71d0e4e005f6adc053dcd2cf3cbed7 Mon Sep 17 00:00:00 2001 From: Christoph Gysin Date: Sun, 5 Nov 2017 23:27:31 +0200 Subject: [PATCH] getopt: load profile from args --- autorandr.py | 2 ++ 1 file changed, 2 insertions(+) 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 = [] -- 2.39.2