aboutsummaryrefslogtreecommitdiff
path: root/cmd/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/status.go')
-rw-r--r--cmd/status.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/status.go b/cmd/status.go
index 662ebf2..bd4307e 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -20,6 +20,7 @@ package cmd
import (
"fmt"
+ "os"
"strings"
"github.com/MikunoNaka/macli/ui"
"github.com/MikunoNaka/macli/mal"
@@ -41,12 +42,14 @@ var statusCmd = &cobra.Command{
statusInput, err := cmd.Flags().GetString("set-value")
if err != nil {
- fmt.Println("Error while reading status flag.", err.Error())
+ fmt.Println("Error while reading \x1b[33m--set-value\x1b[0m flag.", err.Error())
+ os.Exit(1)
}
mangaMode, err := cmd.Flags().GetBool("manga")
if err != nil {
- fmt.Println("Error while reading manga flag.", err.Error())
+ fmt.Println("Error while reading \x1b[33m--manga\x1b[0m flag.", err.Error())
+ os.Exit(1)
}
if mangaMode {