From 7e4aa33a0a2ac59655ba349cff6acce3b0ff0d48 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 2 Jan 2020 15:17:22 +0000 Subject: [PATCH] Set default mode to verbose --- README.md | 2 +- appvm.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b9064b3..53339cb 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You need to **relogin** if you install virt-manager (libvirt) first time. ## Run application - $ appvm start chromium --verbose + $ appvm start chromium $ # ... long wait for first time, because we need to collect a lot of packages You can customize local settings in **~/.config/appvm/nix/local.nix**. diff --git a/appvm.go b/appvm.go index 56405ec..dc30725 100644 --- a/appvm.go +++ b/appvm.go @@ -327,7 +327,7 @@ func main() { startCommand := kingpin.Command("start", "Start application") startName := startCommand.Arg("name", "Application name").Required().String() - startVerbose := startCommand.Flag("verbose", "Increase verbosity").Default("False").Bool() + startQuiet := startCommand.Flag("quiet", "Less verbosity").Bool() stopName := kingpin.Command("stop", "Stop application").Arg("name", "Application name").Required().String() dropName := kingpin.Command("drop", "Remove application data").Arg("name", "Application name").Required().String() @@ -343,7 +343,7 @@ func main() { case "generate": generate(l, *generateName, *generateBin, *generateVMName) case "start": - start(l, *startName, *startVerbose) + start(l, *startName, !*startQuiet) case "stop": stop(l, *stopName) case "drop":