Skip to content

Commit

Permalink
Don't special case version command (#1870)
Browse files Browse the repository at this point in the history
We don't have a `turbo version` command, so don't special case it in argument parsing.

Fixes #1839 

This is superceded by #1792
  • Loading branch information
Greg Soltis authored Sep 6, 2022
1 parent b610d9d commit 9c2eb01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func ParseAndValidate(args []string, ui cli.Ui, turboVersion string, userConfigF
cmd, inputFlags := args[0], args[1:]
// Special check for version command
// command is ./turbo --version
if len(inputFlags) == 0 && (cmd == "version" || cmd == "--version" || cmd == "-version") {
if len(inputFlags) == 0 && (cmd == "--version" || cmd == "-version") {
return nil, nil
}

Expand Down

0 comments on commit 9c2eb01

Please sign in to comment.