Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Add a default value to --config option
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
agis committed Apr 10, 2018
1 parent 3f73499 commit 9663e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func main() {
},
cli.StringFlag{
Name: "config, c",
Value: "config.json",
Usage: "Load configuration from `FILE`",
},
cli.StringFlag{
Expand All @@ -87,7 +88,7 @@ func main() {

f, err := os.Open(c.String("config"))
if err != nil {
return err
return fmt.Errorf("cannot parse configuration; %s", err)
}
cfg, err := ParseConfig(c.String("addr"), fs, f)
if err != nil {
Expand Down

0 comments on commit 9663e48

Please sign in to comment.