goblin/ls: use the standard usage message.
This commit is contained in:
parent
185833af4c
commit
0395484a13
1 changed files with 0 additions and 4 deletions
4
ls/ls.go
4
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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue