aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-10-14 08:40:36 +0000
committerGitHub <noreply@github.com>2022-10-14 08:40:36 +0000
commit12dbf227628c43e5992212ac12681dd258f731cc (patch)
treef8e41d7b755c6457793f009c300132e2e4d7968b /README.md
parentBump deps (diff)
parentAdd CHANGELOG for clap v4 upgrade (diff)
downloadminiserve-12dbf227628c43e5992212ac12681dd258f731cc.tar.gz
miniserve-12dbf227628c43e5992212ac12681dd258f731cc.zip
Merge pull request #929 from svenstaro/upgrade-clap
Upgrade clap to v4
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index e952485..910f89f 100644
--- a/README.md
+++ b/README.md
@@ -64,12 +64,19 @@ Sometimes this is just a more practical and quick way than doing things properly
### Upload a file using `curl`:
# in one terminal
- miniserve -u .
+ miniserve -u -- .
# in another terminal
curl -F "path=@$FILE" http://localhost:8080/upload\?path\=/
(where `$FILE` is the path to the file. This uses miniserve's default port of 8080)
+Note that for uploading, we have to use `--` to disambiguate the argument to `-u`.
+This is because `-u` can also take a path (or multiple). If a path argument to `-u` is given,
+uploading will only be possible to the provided paths as opposed to every path.
+
+Another effect of this is that you can't just combine flags like this `-uv` when `-u` is used. In
+this example, you'd need to use `-u -v`.
+
### Create a directory using `curl`:
# in one terminal