aboutsummaryrefslogtreecommitdiff
path: root/cmd/status.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 20:15:05 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 20:15:05 +0530
commita3a7b41179d8abe9edc705db6b14063e95c459fa (patch)
tree935506bc5ddf9c6a28b45b619b370178f1dc13d4 /cmd/status.go
parent599139984e50d769bb97332ed5a327cf6d41ba37 (diff)
added --query option to episodes and chapters command
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 {