Skip to content

v2.33.0: CLI Verbose Fix

Choose a tag to compare

@oisee oisee released this 03 Apr 13:43

What's New in v2.33.0

Bug Fix: --verbose now works for all CLI subcommands

Previously --verbose / -v was a local flag only available in MCP server mode.
CLI subcommands like vsp query, vsp search, vsp source silently ignored it.

Fixed:

  • vsp -v query T100 — now shows HTTP request/response details
  • SAP_VERBOSE=true vsp query T100 — env var also works for CLI mode
  • All subcommands inherit --verbose via PersistentFlags

How to Diagnose ADT Endpoint Issues

If a command fails, add -v to see the exact HTTP status and response:

vsp -v query T100
vsp -v install zadt-vsp

Full Changelog

  • --verbose flag moved from rootCmd.Flags() to rootCmd.PersistentFlags()
  • Added PersistentPreRunE to enable HTTP logging before subcommand execution
  • SAP_VERBOSE env var now checked in CLI path via viper