Document _file option suffix

This commit is contained in:
Marc Plano-Lesay 2025-05-03 15:18:44 +10:00
parent 48cd0c64fa
commit 6d1b2e5049
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF

View file

@ -32,7 +32,7 @@ reddit-magnet [OPTIONS]
## Configuration
Reddit Magnet uses a TOML configuration file. By default, it looks for a configuration file at `$XDG_CONFIG_HOME/reddit-magnet/config.toml`, but you can specify a different location using the `--config` option.
Reddit Magnet uses a TOML configuration file. By default, it looks for a configuration file at `$XDG_CONFIG_HOME/reddit-magnet/config.toml`, but you can specify a different location using the `--config` option. Note that every option can be suffixed with `_file`, and the value set to a path - at runtime, this file will be read and its content will be assumed as the value for the option. This allows storing sensitive credentials somewhere else.
### Example configuration
@ -44,6 +44,7 @@ host = "http://localhost"
port = 9091
username = "username" # Optional
password = "password" # Optional
# Could also be password_file = "/run/secrets/reddit-magnet/transmission/password"
download_dir = "/downloads" # Optional
# BitMagnet configuration