git » chasquid » commit 8e1fd52

chasquid-util: Add short descriptions of each subcommand

author Alberto Bertogli
2024-03-04 17:40:51 UTC
committer Alberto Bertogli
2024-03-07 23:07:36 UTC
parent 8b056823e6328e2380ef2af1d822faf734afda83

chasquid-util: Add short descriptions of each subcommand

This patch adds short descriptions of each subcommand, to make the help
message more helpful.

cmd/chasquid-util/chasquid-util.go +7 -0

diff --git a/cmd/chasquid-util/chasquid-util.go b/cmd/chasquid-util/chasquid-util.go
index 792da96..e3c68a8 100644
--- a/cmd/chasquid-util/chasquid-util.go
+++ b/cmd/chasquid-util/chasquid-util.go
@@ -30,12 +30,19 @@ import (
 const usage = `
 Usage:
   chasquid-util [options] user-add <user@domain> [--password=<password>] [--receive_only]
+    Add a user to the userdb.
   chasquid-util [options] user-remove <user@domain>
+    Remove a user from the userdb.
   chasquid-util [options] authenticate <user@domain> [--password=<password>]
+    Authenticate a user.
   chasquid-util [options] check-userdb <domain>
+    Check if the userdb for the given domain is accessible.
   chasquid-util [options] aliases-resolve <address>
+    Resolve an address. Talks to the running chasquid.
   chasquid-util [options] domaininfo-remove <domain>
+    Remove domaininfo for the given domain. Talks to the running chasquid.
   chasquid-util [options] print-config
+    Print the current chasquid configuration.
 
 Options:
   -C=<path>, --configdir=<path>  Configuration directory