mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-28 18:22:06 +01:00
docs(app): describe the desktop flags' variables and usage errors (#7071)
Say that `photocraft --help` lists the flags and their variables, that a flag wins and an empty variable is unset, and what is a usage error; that a bad --present-mode or --frame-latency is one while a bad variable is still ignored; list PHOTOCRAFT_IN_WINDOW_MENUS; and that a token with a token file is a usage error for the control server too. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ photocraft --control 7878 --control-token-file /private/path/photocraft-control.
|
||||
--automation-read-root /work/project --automation-write-root /work/project
|
||||
```
|
||||
|
||||
If the file does not exist, PhotoCraft creates it with a fresh 256-bit token. On Unix the new file is mode `0600`; on Windows, protect it with an appropriate user-only ACL. An existing file is reused. If neither a token nor token file is configured, PhotoCraft generates a token for that launch and writes it to standard error. `PHOTOCRAFT_CONTROL_TOKEN` and `PHOTOCRAFT_CONTROL_TOKEN_FILE` are the environment-variable equivalents.
|
||||
If the file does not exist, PhotoCraft creates it with a fresh 256-bit token. On Unix the new file is mode `0600`; on Windows, protect it with an appropriate user-only ACL. An existing file is reused. If neither a token nor token file is configured, PhotoCraft generates a token for that launch and writes it to standard error. `PHOTOCRAFT_CONTROL_TOKEN` and `PHOTOCRAFT_CONTROL_TOKEN_FILE` are the environment-variable equivalents. A flag wins over its variable and an empty variable counts as unset; with `--control` (or `PHOTOCRAFT_CONTROL_PORT`), a token together with a token file, from flags or variables, is a usage error (exit status 2). Without it no token is read, so the pair is ignored.
|
||||
|
||||
The first request on every TCP connection must authenticate. No other method is dispatched before this succeeds:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user