Browse Source

Add basic help message.

pull/283/head
Daniel Hauck 4 years ago
parent
commit
e429db4479
No known key found for this signature in database GPG Key ID: 704FA932CF266941
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      src/cadence.py

+ 14
- 0
src/cadence.py View File

@@ -2355,6 +2355,20 @@ def runFunctionInMainThread(task):

#--------------- main ------------------
if __name__ == '__main__':
# Show help
if "--help" in sys.argv or "-h" in sys.argv:
print(f"""cadence {VERSION}

USAGE:
cadence [FLAGS]

FLAGS:
--help, -h
show this help
--minimized
start minimized in the tray""")
sys.exit()

# App initialization
app = QApplication(sys.argv)
app.setApplicationName("Cadence")


Loading…
Cancel
Save