Skip to content

Commit bb2073a

Browse files
authored
feat: add '-h' flag for help command (#21)
* feat: add '-h' flag for help command
1 parent 4afb8e5 commit bb2073a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func runProfileSwitcher() error {
5353
}
5454

5555
func shouldRunDirectProfileSwitch() bool {
56-
invalidProfiles := []string{"l", "list", "completion", "help", "--help", "v", "version"}
56+
invalidProfiles := []string{"l", "list", "completion", "help", "--help", "-h", "v", "version"}
5757
return len(os.Args) > 1 && !utils.Contains(invalidProfiles, os.Args[1])
5858
}
5959

0 commit comments

Comments
 (0)