From 76572b15cb6eef3a3c942cb1c7a5b189c003380c Mon Sep 17 00:00:00 2001
From: Ciro
Date: Sun, 18 Dec 2022 11:26:53 -0300
Subject: [PATCH] fix docs and -w option
---
docs/README.md | 8 +++++++-
docs/_sidebar.md | 1 +
src/socketify/cli.py | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/docs/README.md b/docs/README.md
index b43a473..567e4cc 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -5,10 +5,15 @@
-
+
+
+
+
+
+
@@ -30,4 +35,5 @@ With no precedents websocket performance and an really fast HTTP server that can
- [GraphiQL](graphiql.md)
- [WebSockets and Backpressure](websockets-backpressure.md)
- [SSL](ssl.md)
+- [CLI Reference](cli.md)
- [API Reference](api.md)
diff --git a/docs/_sidebar.md b/docs/_sidebar.md
index 8575854..5343c67 100644
--- a/docs/_sidebar.md
+++ b/docs/_sidebar.md
@@ -13,4 +13,5 @@
- [GraphiQL](graphiql.md)
- [WebSockets and Backpressure](websockets-backpressure.md)
- [SSL](ssl.md)
+- [CLI Reference](cli.md)
- [API Reference](api.md)
diff --git a/src/socketify/cli.py b/src/socketify/cli.py
index d524b18..289abc8 100644
--- a/src/socketify/cli.py
+++ b/src/socketify/cli.py
@@ -108,7 +108,7 @@ def execute(args):
if selected_option:
options[selected_option] = option
selected_option = None
- elif option.startswith('--'):
+ elif option.startswith('--') or option.startswith('-'):
if selected_option is None:
selected_option = option
else: # --factory, --reload etc