Skip to content

Commit

Permalink
fix(cli): remove shorthand args
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Apr 16, 2024
1 parent 5f58fb1 commit 880951a
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions python/src/wslink/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@

# =============================================================================
# Setup default arguments to be parsed
# -s, --nosignalhandlers
# -d, --debug
# -i, --host localhost
# --nosignalhandlers
# --debug
# --host localhost
# -p, --port 8080
# -t, --timeout 300 (seconds)
# -c, --content '/www' (No content means WebSocket only)
# -a, --authKey vtkweb-secret
# --timeout 300 (seconds)
# --content '/www' (No content means WebSocket only)
# --authKey vtkweb-secret
# =============================================================================


Expand All @@ -35,16 +35,14 @@ def add_arguments(parser):
"""

parser.add_argument(
"-d", "--debug", help="log debugging messages to stdout", action="store_true"
"--debug", help="log debugging messages to stdout", action="store_true"
)
parser.add_argument(
"-s",
"--nosignalhandlers",
help="Prevent installation of signal handlers so server can be started inside a thread.",
action="store_true",
)
parser.add_argument(
"-i",
"--host",
type=str,
default="localhost",
Expand All @@ -58,26 +56,22 @@ def add_arguments(parser):
help="port number for the web-server to listen on (default: 8080)",
)
parser.add_argument(
"-t",
"--timeout",
type=int,
default=300,
help="timeout for reaping process on idle in seconds (default: 300s, 0 to disable)",
)
parser.add_argument(
"-c",
"--content",
default="",
help="root for web-pages to serve (default: none)",
)
parser.add_argument(
"-a",
"--authKey",
default="wslink-secret",
help="Authentication key for clients to connect to the WebSocket.",
)
parser.add_argument(
"-ws",
"--ws-endpoint",
type=str,
default="ws",
Expand Down

0 comments on commit 880951a

Please sign in to comment.