Skip to content

Commit

Permalink
Fix a minor bug.This branch should now be stable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Pandademic committed May 27, 2022
1 parent 794060c commit 12ba1e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (c *Cli) Setup() {
if contains(os.Args[1], c.AcceptedCommands) {
Command = os.Args[1]
Args = os.Args
shiftArgsDownward(Args)
Args = shiftArgsDownward(Args)
} else {
fmt.Println("Command not found: ", os.Args[1])
}
Expand Down

0 comments on commit 12ba1e4

Please sign in to comment.