Skip to content

Commit

Permalink
fix: invalid default config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
igoogolx committed Feb 25, 2024
1 parent 1144e12 commit 7ebe290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func main() {
defaultHomeDir := filepath.Join(configDir, packageName)

flag.BoolVar(&version, "version", false, "Print version")
flag.IntVar(&port, "port", constants.DefaultHubPort, fmt.Sprintf("Running port, default: %v", defaultHomeDir))
flag.StringVar(&homeDir, "home_dir", "", "Config dir, default: current dir")
flag.IntVar(&port, "port", constants.DefaultHubPort, "Running port, default:9000")
flag.StringVar(&homeDir, "home_dir", "", fmt.Sprintf("Config dir, default: %v", defaultHomeDir))
flag.Parse()

if homeDir != "" {
Expand Down

0 comments on commit 7ebe290

Please sign in to comment.