Skip to content

Commit

Permalink
bug fix for empty prefix flag overwritten by env var
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaslovsky committed Jul 7, 2024
1 parent 7448743 commit cf035b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ func parseCommonOptions() (*commonOptions, error) {
}
opts.maxTabs = cFlags.maxTabs

// Fall back on env var for prefix
opts.prefix = cFlags.prefix
if opts.prefix == "" {
opts.prefix = os.Getenv(getEnvVarName(envVarPrefix))
}

opts.clipboard = cFlags.clipboard
opts.verbose = cFlags.verbose

Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func main() {

case versionCmd.Name():
displayVersion()
os.Exit(0)

default:
fmt.Printf("Error: unrecognized subcommand %s\n", subCmd)
Expand Down

0 comments on commit cf035b0

Please sign in to comment.