Skip to content

Commit

Permalink
fixing minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitparekh17 committed Nov 15, 2024
1 parent c7ce836 commit 110fbe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type network struct {
}

func init() {
configFilePath := filepath.Join(".", DefaultConfigName)
configFilePath := filepath.Join(DefaultConfigDir, DefaultConfigName)
if err := loadDiceConfig(configFilePath); err != nil {
log.Fatalf("Failed to load configuration: %v", err)
}
Expand Down
3 changes: 1 addition & 2 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func render() {
func Execute() {
if len(os.Args) < 2 {
config.CreateConfigFile(filepath.Join(config.DefaultConfigDir, "dicedb.conf"))

render()
return
}
Expand Down Expand Up @@ -195,7 +194,7 @@ func Execute() {

func printUsage() {
fmt.Println(`Usage: ./dicedb [/path/to/dice.conf] [options] [-]
./dicedb - (read config from stdin)
./dicedb - (read config from stdin) e.g. echo "version=1.0" | ./dicedb -
./dicedb -v or --version
./dicedb -h or --help`)
}

0 comments on commit 110fbe2

Please sign in to comment.