From a2545a3dcb3a2ff732b2427d4da5e08d7605455a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 14 Jul 2014 11:50:41 +0200 Subject: [PATCH 1/1] Fix parsing CLI arguments --- dsl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dsl.py b/dsl.py index 2baca7d..f9c0702 100755 --- a/dsl.py +++ b/dsl.py @@ -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() -- 2.30.2