Skip to content

Commit 12ba1e4

Browse files
author
Pandademic
committed
Fix a minor bug.This branch should now be stable
By stable I mean ready to merge. What was the minor bug , you may ask? Function shiftArgsDownward returns the slice , and does not modify it. Previously Args was not set to shiftArgsDownward(Args) , so it stayed unmodified Yes , future me I ran go fmt
1 parent 794060c commit 12ba1e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (c *Cli) Setup() {
4747
if contains(os.Args[1], c.AcceptedCommands) {
4848
Command = os.Args[1]
4949
Args = os.Args
50-
shiftArgsDownward(Args)
50+
Args = shiftArgsDownward(Args)
5151
} else {
5252
fmt.Println("Command not found: ", os.Args[1])
5353
}

0 commit comments

Comments
 (0)