Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Use -silent instead of -verbose. Closes #27.
Browse files Browse the repository at this point in the history
jorinvo committed Jan 6, 2017
1 parent 80d6d55 commit d29453c
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -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)
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit d29453c

Please sign in to comment.