Subject: [bug#58817] [PATCH] etc: teams: Add help information for commands.

From: Antero Mejr <[email-masked]>
Date: Thu, 27 Oct 2022 11:09:09 -0400

* etc/teams.scm.in (main): Add command information to usage help prompt.
---
Add help info so users don't have to read the source to use teams.scm.

 etc/teams.scm.in | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/etc/teams.scm.in b/etc/teams.scm.in
index c27ea5271e..14cabbf6f2 100644
--- a/etc/teams.scm.in
+++ b/etc/teams.scm.in
@@ -601,6 +601,12 @@ (define (main . args)
       team-names))
     (anything
      (format (current-error-port)
-             "Usage: etc/teams.scm <command> [<args>]~%"))))
+             "Usage: etc/teams.scm <command> [<args>]
+
+Commands:
+  cc <team-name>            get git send-email flags for cc-ing <team-name>
+  cc-members <start> <end>  cc teams related to files changed between revisions
+  list-teams                list teams and their members
+  list-members <team-name>  list members belonging to <team-name>~%"))))
 
 (apply main (cdr (command-line)))
-- 
2.37.3