Skip to content

Commit

Permalink
[DOC] fix config parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Oct 1, 2017
1 parent 4aa8aca commit 3649bdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Usage:
yanic serve [flags]
Examples:
yanic serve -config /etc/yanic.toml
yanic serve --config /etc/yanic.toml
Flags:
-c, --config string Path to configuration file (default "config.toml")
Expand All @@ -77,7 +77,7 @@ Usage:
yanic import <file.rrd> [flags]
Examples:
yanic import -config /etc/yanic.toml olddata.rrd
yanic import --config /etc/yanic.toml olddata.rrd
Flags:
-c, --config string Path to configuration file (default "config.toml")
Expand Down
2 changes: 1 addition & 1 deletion cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
var importCmd = &cobra.Command{
Use: "import <file.rrd>",
Short: "Imports global statistics from the given RRD files, requires InfluxDB",
Example: "yanic import -config /etc/yanic.toml olddata.rrd",
Example: "yanic import --config /etc/yanic.toml olddata.rrd",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
path := args[0]
Expand Down
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
var serveCmd = &cobra.Command{
Use: "serve",
Short: "Runs the yanic server",
Example: "yanic serve -config /etc/yanic.toml",
Example: "yanic serve --config /etc/yanic.toml",
Run: func(cmd *cobra.Command, args []string) {
config := loadConfig()

Expand Down

0 comments on commit 3649bdd

Please sign in to comment.