Skip to content

Commit

Permalink
fix: replace reference to removed subcommands
Browse files Browse the repository at this point in the history
Fixes #1862
  • Loading branch information
Stratus3D committed Feb 1, 2025
1 parent 26580a3 commit 4e76f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ func whereCommand(logger *log.Logger, tool, versionStr string) error {
}

// not found
msg := fmt.Sprintf("No version is set for %s; please run `asdf <global | shell | local> %s <version>`", tool, tool)
msg := fmt.Sprintf("No version is set for %s; please run `asdf set [options] %s <version>`", tool, tool)
logger.Print(msg)
return errors.New(msg)
}
Expand Down
2 changes: 1 addition & 1 deletion test/where_command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ teardown() {
run asdf where 'dummy'

local expected
expected="No version is set for dummy; please run \`asdf <global | shell | local> dummy <version>\`"
expected="No version is set for dummy; please run \`asdf set [options] dummy <version>\`"

[ "$status" -eq 1 ]
[ "$output" = "$expected" ]
Expand Down

0 comments on commit 4e76f40

Please sign in to comment.