diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-28 18:31:51 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-11-28 18:31:51 -0600 |
| commit | 09fef11e1fedf129756bf36f754ff16dc561f417 (patch) | |
| tree | 899eeb17eb3244e9eb91a153be7a85125e02c6ed | |
| parent | ff4d8075559cd2c7544982356ac1a801452b215d (diff) | |
| download | slskd-09fef11e1fedf129756bf36f754ff16dc561f417.tar.gz | |
document flags and commands
| -rw-r--r-- | docs/config.md | 23 | ||||
| -rw-r--r-- | src/slskd/Options.cs | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/docs/config.md b/docs/config.md index e69de29b..4ee0d7a1 100644 --- a/docs/config.md +++ b/docs/config.md @@ -0,0 +1,23 @@ +# Feature Flags + +A number of feature flags are provided to change the runtime behavior of the application. Most of these options are useful only for development. Available feature flags are: + +|Flag|Description| +|----|-----------| +|`-d\|--debug`|Run the application in debug mode. Produces verbose log output.| +|`-n\|--no-logo`|Don't show the application logo on startup| +|`-x\|--no-start`|Bootstrap the application, but don't start| +|`--no-connect`|Start the application, but don't connect to the server| +|`--no-share-scan`|Don't perform a scan of shared directories on startup| +|`--no-version-check`|Don't perform a version check on startup| + +# Commands + +The application can be run in "command mode", causing it to execute a command and then quit immediately. Available commands are: + +|Command|Description| +|-------|-----------| +|`-v\|--version`|Display the current application version| +|`-h\|--help`|Display available command-line arguments| +|`-e\|--envars`|Display available environment variables| +|`-g\|--generate-cert`|Generate an X509 certificate and password for HTTPS|
\ No newline at end of file diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 4a9df941..13fb1455 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -118,7 +118,7 @@ namespace slskd /// Gets a value indicating whether to generate an X509 certificate and password. /// </summary> [Argument('g', "generate-cert")] - [Description("generate X509 certificate and password for HTTPs")] + [Description("generate X509 certificate and password for HTTPS")] [Obsolete("Used only for documentation; see Program for actual implementation")] [YamlIgnore] public bool GenerateCertificate { get; private set; } = false; |
