projects
/
lilass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
467c846
)
Fix parsing CLI arguments
author
Ralf Jung
<post@ralfj.de>
Mon, 14 Jul 2014 09:50:41 +0000
(11:50 +0200)
committer
Ralf Jung
<post@ralfj.de>
Mon, 14 Jul 2014 09:50:41 +0000
(11:50 +0200)
dsl.py
patch
|
blob
|
history
diff --git
a/dsl.py
b/dsl.py
index 2baca7dddbf9c64677a8ef65b2925679c0d23aa3..f9c0702cb0d76b8b53aef54ddda45627b3a8b282 100755
(executable)
--- 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')
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")
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")
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()
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()