aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 18:41:42 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 18:41:42 +0530
commit599139984e50d769bb97332ed5a327cf6d41ba37 (patch)
tree6b5b104a80261d181f02cfdbcdc01f3a2629538c
parente61698cc5b428ff80a1fe3e2da18c047df47b1d3 (diff)
Bug Fix: error reading status flag
-rw-r--r--cmd/status.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/status.go b/cmd/status.go
index 94e8d1d..662ebf2 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -39,7 +39,7 @@ var statusCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
searchInput := strings.Join(args, " ")
- statusInput, err := cmd.Flags().GetString("status")
+ statusInput, err := cmd.Flags().GetString("set-value")
if err != nil {
fmt.Println("Error while reading status flag.", err.Error())
}