summaryrefslogtreecommitdiffstats
path: root/cmd/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/root.go')
-rw-r--r--cmd/root.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/root.go b/cmd/root.go
index c4239ba..292e96d 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -9,7 +9,8 @@ import (
)
var (
- jsonOutput bool
+ jsonOutput bool
+ debugOutput bool
)
var rootCmd = &cobra.Command{
@@ -33,8 +34,13 @@ func Execute() {
func init() {
rootCmd.PersistentFlags().BoolVarP(&jsonOutput, "json", "j", false, "Output raw JSON instead of formatted text")
+ rootCmd.PersistentFlags().BoolVarP(&debugOutput, "debug", "d", false, "Enable debug output (shows raw API responses)")
}
func IsJSONOutput() bool {
return jsonOutput
}
+
+func IsDebugOutput() bool {
+ return debugOutput
+}