X-Git-Url: https://git.ralfj.de/lilass.git/blobdiff_plain/467c84630b284769e555be54f2d47eecc36ed7df..5f31a12cf9c2662d9cddc2292980a58599457477:/dsl.py diff --git a/dsl.py b/dsl.py index 2baca7d..ef2ed3e 100755 --- a/dsl.py +++ b/dsl.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 # DSL - easy Display Setup for Laptops -# Copyright (C) 2012 Ralf Jung +# Copyright (C) 2012-2014 Ralf Jung # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -182,13 +182,13 @@ if __name__ == "__main__": try: # parse command-line arguments parser = argparse.ArgumentParser(description='easy Display Setup for Laptops') - parser.add_argument("-f, --frontend", + parser.add_argument("-f", "--frontend", dest="frontend", help="The frontend to be used for user interaction") - parser.add_argument("-r, --relative-position", + parser.add_argument("-r", "--relative-position", dest="rel_position", choices=('left', 'right', 'external-only'), help="Position of external screen relative to internal one") - parser.add_argument("-i,--internal-only", + parser.add_argument("-i", "--internal-only", dest="internal_only", action='store_true', help="Enable internal screen, disable all the others (as if no external screen was connected") cmdArgs = parser.parse_args()