From 3649bdd1c3572dd02089cfe3495ffbb95aaf74ea Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Mon, 2 Oct 2017 00:44:21 +0200 Subject: [PATCH] [DOC] fix config parameter --- README.md | 4 ++-- cmd/import.go | 2 +- cmd/serve.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2e54cc8..65f6c2e 100644 --- a/README.md +++ b/README.md @@ -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") @@ -77,7 +77,7 @@ Usage: yanic import [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") diff --git a/cmd/import.go b/cmd/import.go index 52a132f..93959b3 100644 --- a/cmd/import.go +++ b/cmd/import.go @@ -14,7 +14,7 @@ import ( var importCmd = &cobra.Command{ Use: "import ", 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] diff --git a/cmd/serve.go b/cmd/serve.go index 4288749..153f0d9 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -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()