Skip to content

Commit

Permalink
Use short-help by default instead of dump-config (Fixes #51)
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipberndt committed Sep 20, 2018
1 parent 3487f4d commit 20a0301
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fakexrandr-manage.py
Expand Up @@ -689,6 +689,13 @@ def perform_action(action):
configuration_data = serialize_configurations(configurations.values())
with open(CONFIGURATION_FILE_PATH, "wb") as output:
output.write(configuration_data)

elif action == "short-help":
print("fakexrandr manage script\n"
"Syntax: fakexrandr-manage <gui|dump-config|show-available|clear-config|\n"
" set-config|help>\n\n"
"I'd run the gui per default for you, but PyGobject isn't installed.\n\n")

else:
print("fakexrandr manage script\n"
"Syntax: fakexrandr-manage <gui|dump-config|show-available|clear-config|\n"
Expand Down Expand Up @@ -720,6 +727,6 @@ def perform_action(action):
elif HAS_GTK:
action = "gui"
else:
action = "dump-config"
action = "short-help"

perform_action(action)

0 comments on commit 20a0301

Please sign in to comment.