From a3a7b41179d8abe9edc705db6b14063e95c459fa Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 30 Jun 2022 20:15:05 +0530 Subject: added --query option to episodes and chapters command --- cmd/status.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmd/status.go') 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 { -- cgit v1.2.3