You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser=argparse.ArgumentParser(description='Starts an ActivityWatch server')
41
-
parser.add_argument('--testing',
42
-
action='store_true',
43
-
help='Run aw-server in testing mode using different ports and database')
44
-
parser.add_argument('--verbose',
45
-
action='store_true',
46
-
help='Be chatty.')
47
-
parser.add_argument('--log-json',
48
-
action='store_true',
49
-
help='Output the logs in JSON format')
50
-
parser.add_argument('--host',
51
-
dest='host',
52
-
help='Which host address to bind the server to')
53
-
parser.add_argument('--port',
54
-
dest='port',
55
-
type=int,
56
-
help='Which port to run the server on')
57
-
parser.add_argument('--storage', dest='storage',
58
-
help='The method to use for storing data. Some methods (such as MongoDB) require specific Python packages to be available (in the MongoDB case: pymongo)')
59
-
parser.add_argument('--cors-origins',
60
-
dest='cors_origins',
61
-
help='CORS origins to allow (as a comma separated list)')
51
+
parser=argparse.ArgumentParser(description="Starts an ActivityWatch server")
52
+
parser.add_argument(
53
+
"--testing",
54
+
action="store_true",
55
+
help="Run aw-server in testing mode using different ports and database",
"--log-json", action="store_true", help="Output the logs in JSON format"
60
+
)
61
+
parser.add_argument(
62
+
"--host", dest="host", help="Which host address to bind the server to"
63
+
)
64
+
parser.add_argument(
65
+
"--port", dest="port", type=int, help="Which port to run the server on"
66
+
)
67
+
parser.add_argument(
68
+
"--storage",
69
+
dest="storage",
70
+
help="The method to use for storing data. Some methods (such as MongoDB) require specific Python packages to be available (in the MongoDB case: pymongo)",
71
+
)
72
+
parser.add_argument(
73
+
"--cors-origins",
74
+
dest="cors_origins",
75
+
help="CORS origins to allow (as a comma separated list)",
0 commit comments