shithub: hell

Download patch

ref: a0fcdc0c539634670f2fa71d72831c22f2ec10a4
parent: 97faf29ffeda18032937be202fe2f69d57151c04
author: penny <penny@limitedideas.org>
date: Wed Jan 21 20:18:21 EST 2026

better help output

--- a/config.go
+++ b/config.go
@@ -132,7 +132,14 @@
 		//Probably not a normal multiuser system
 		configpath = configFileName
 	}
-	var profile = flag.String("p", "", "create/load profile name")
+	var profile = flag.String("p", "", "[-p profile]")
+	flag.Usage = func() {
+		fmt.Fprintf(flag.CommandLine.Output(), "%s ", flag.CommandLine.Name())
+		flag.VisitAll(func(f *flag.Flag) {
+			fmt.Fprintf(flag.CommandLine.Output(), "%s", f.Usage)
+		})
+		fmt.Fprintln(flag.CommandLine.Output(), "")
+	}
 	flag.Parse()
 
 	// Check if the config file exists
--