Skip to content

Commit 33096dc

Browse files
committed
Fix hashup nats --config flag
1 parent 0c36211 commit 33096dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nats.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ func startEmbeddedNATSServer(c *cli.Context) error {
2222
}
2323

2424
conf := c.String("config")
25-
if opts.ConfigFile == "" {
25+
if conf == "" {
2626
conf = filepath.Join(homeDir, ".config", "hashup", "nats.conf")
2727
}
28+
opts.ConfigFile = conf
2829
err = opts.ProcessConfigFile(conf)
2930
if err != nil {
3031
return fmt.Errorf("failed to process config file: %v", err)

0 commit comments

Comments
 (0)