Add usage to documentation (#2200)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-10-17 04:40:07 +02:00
1 parent c84e445662
commit f74cf581b3
6 files changed
+451 -24

No files matched your search

+7
View File
@@ -239,6 +239,11 @@ func main() {
false,
"show documentation")
showHelp := flag.Bool(
"help",
false,
"show help")
showVersion := flag.Bool(
"version",
false,
@@ -330,6 +335,8 @@ func main() {
switch {
case *showDoc:
fmt.Print(genDocString)
case *showHelp:
flag.Usage()
case *showVersion:
printVersion()
case *remoteCmd != "":