summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index 7ad9b4a..eb85922 100644
--- a/main.go
+++ b/main.go
@@ -13,6 +13,7 @@ import (
var cmdMode = flag.String("c", "", "")
var helpMode = flag.Bool("h", false, "")
+var quietMode = flag.Bool("q", false, "")
func main() {
conf, err := getConfig()
@@ -62,6 +63,10 @@ func main() {
return
}
+ if *quietMode {
+ state.Quiet = true
+ }
+
rl, err := readline.New(Prompt)
if err != nil {
log.Fatal(err)