cerca

lean forum software (pmc local branch)
Log | Files | Refs | README | LICENSE

commit a192f455eef06015114d3b1d99dd584f6da483c9
parent b8817232104dfbb077ae0484a13b3c162c398101
Author: cblgh <cblgh@cblgh.org>
Date:   Sat, 30 Sep 2023 13:25:48 +0200

admin-add-user: make output better for copy \& pasting

Diffstat:
Mcmd/admin-add-user/main.go | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/admin-add-user/main.go b/cmd/admin-add-user/main.go @@ -55,9 +55,9 @@ func createUser (username, password string, db *database.DB) UserInfo { func inform(msg string, args ...interface{}) { if len(args) > 0 { - fmt.Printf("admin-add-user: %s\n", fmt.Sprintf(msg, args...)) + fmt.Printf("%s\n", fmt.Sprintf(msg, args...)) } else { - fmt.Printf("admin-add-user: %s\n", msg) + fmt.Printf("%s\n", msg) } } @@ -83,7 +83,7 @@ func main() { usage := `usage admin-add-user --url https://forum.merveilles.town --database ./data/forum.db --username <username to create account for> - admin-add-user --help for more information + admin-add-user --help for more information ` if username == "" {