Skip to content

Commit

Permalink
Skip project discovery for version command
Browse files Browse the repository at this point in the history
  • Loading branch information
5nord committed Jul 3, 2022
1 parent e4afcee commit 051486a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ntt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ var (
}
}

if cmd.Use == "ntt" {
// Skip opening the project if we're running a custom command or version.
if cmd.Use == "ntt" || cmd.Use == "version" {
// first arg is either an external subkommand of the form
// k3-Arg[0] or ntt-Arg[0] or unknown
return nil
Expand Down

0 comments on commit 051486a

Please sign in to comment.