From d29453c31be8aa9f4aa81d1f5342f380bbfdc925 Mon Sep 17 00:00:00 2001 From: Jorin Vogel Date: Fri, 6 Jan 2017 11:41:58 +0100 Subject: [PATCH] Use -silent instead of -verbose. Closes #27. --- main.go | 4 ++-- readme.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 906d947..5ed3d0c 100644 --- a/main.go +++ b/main.go @@ -34,7 +34,7 @@ func main() { // Flags account := flag.String("account", "", accountUsage) secret := flag.String("secret", "", secretUsage) - verbose := flag.Bool("verbose", false, "print progress information") + silent := flag.Bool("silent", false, "Surpress all output") // Parse args flag.Usage = func() { @@ -57,7 +57,7 @@ func main() { case ghbackup.UErr: log.Println(u.Message) case ghbackup.UInfo: - if *verbose { + if !*silent { log.Println(u.Message) } } diff --git a/readme.md b/readme.md index 96415b6..63f47d3 100644 --- a/readme.md +++ b/readme.md @@ -24,8 +24,8 @@ om/settings/tokens). Authentication increases rate limiting (https://developer.github.com/v3 /#rate-limiting) and enables backup of private repositories. - -verbose - print progress information + -silent + Surpress all output For more visit https://qvl.io/ghbackup.