]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
getopt: load profile from args
[deb_pkgs/autorandr.git] / autorandr.py
index 119500bd1cbc73b18c167635ddaeb3523fd9b2dc..e5ab42fdd0308695e720b6ada0415ccdd8751c0e 100755 (executable)
@@ -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 = []