From 0395484a13aca1bb81c762f8355918cd04a3d8a7 Mon Sep 17 00:00:00 2001 From: k1574 Date: Mon, 6 Dec 2021 18:43:14 +0500 Subject: [PATCH] goblin/ls: use the standard usage message. --- ls/ls.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ls/ls.go b/ls/ls.go index 136b1c7..998ec3c 100644 --- a/ls/ls.go +++ b/ls/ls.go @@ -134,10 +134,6 @@ func Run(argv []string) int { var foldLvl int flagSet.IntVar(&foldLvl, "r", 1, "List recursively with choosing deepness, can't be negative or zero.") flagSet.BoolVar(&listHidden, "a", false, "List hidden files.") - flagSet.Usage = func() { - fmt.Fprintf(os.Stderr, "usage: %s [files]\n", arg0, arg0) - flagSet.PrintDefaults() - } flagSet.Parse(args) args = flagSet.Args()