diff --git a/README.md b/README.md index b9a3b257..51fb390f 100644 --- a/README.md +++ b/README.md @@ -412,7 +412,7 @@ configuring accounts/volumes with arguments: `-v .::r,usr1,usr2:rw,usr3,usr4` = usr1/2 read-only, 3/4 read-write permissions: -* `r` (read): browse folder contents, download files, download as zip/tar +* `r` (read): browse folder contents, download files, download as zip/tar, see filekeys/dirkeys * `w` (write): upload files, move files *into* this folder * `m` (move): move files/folders *from* this folder * `d` (delete): delete files/folders @@ -910,6 +910,8 @@ using arguments or config files, or a mix of both: **NB:** as humongous as this readme is, there is also a lot of undocumented features. Run copyparty with `--help` to see all available global options; all of those can be used in the `[global]` section of config files, and everything listed in `--help-flags` can be used in volumes as volflags. * if running in docker/podman, try this: `docker run --rm -it copyparty/ac --help` +* or see this (probably outdated): https://ocv.me/copyparty/helptext.html +* or if you prefer plaintext, https://ocv.me/copyparty/helptext.txt ## zeroconf diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 058ea491..5df76aee 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -821,7 +821,7 @@ def build_flags_desc(): v = v.replace("\n", "\n ") ret += "\n \033[36m{}\033[35m {}".format(k, v) - return ret + "\033[0m" + return ret # fmt: off @@ -1408,7 +1408,7 @@ def run_argparse( k2 = "help_" + k.replace("-", "_") if vars(ret)[k2]: lprint("# %s help page (%s)" % (k, h)) - lprint(t + "\033[0m") + lprint(t.rstrip() + "\033[0m") sys.exit(0) return ret diff --git a/docs/examples/windows.md b/docs/examples/windows.md index 3f3f3219..8ff77059 100644 --- a/docs/examples/windows.md +++ b/docs/examples/windows.md @@ -46,7 +46,7 @@ open up notepad and save the following as `c:\users\you\documents\party.conf` (f ### config explained: [global] -the `[global]` section accepts any config parameters you can see when running copyparty (either the exe or the sfx.py) with `--help`, so this is the same as running copyparty with arguments `--lo c:\users\you\logs\copyparty-%Y-%m%d.xz -e2dsa -e2ts --no-dedup -z -p 80,443 --theme 2 --lang nor` +the `[global]` section accepts any config parameters [listed here](https://ocv.me/copyparty/helptext.html), also viewable by running copyparty (either the exe or the sfx.py) with `--help`, so this is the same as running copyparty with arguments `--lo c:\users\you\logs\copyparty-%Y-%m%d.xz -e2dsa -e2ts --no-dedup -z -p 80,443 --theme 2 --lang nor` * `lo: ~/logs/cpp-%Y-%m%d.xz` writes compressed logs (the compression will make them delayed) * `e2dsa` enables the upload deduplicator and file indexer, which enables searching * `e2ts` enables music metadata indexing, making albums / titles etc. searchable too