From 09fef11e1fedf129756bf36f754ff16dc561f417 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 28 Nov 2021 18:31:51 -0600 Subject: document flags and commands --- docs/config.md | 23 +++++++++++++++++++++++ src/slskd/Options.cs | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) 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. /// [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; -- cgit v1.2.3