Skip to content

Commit 42ffba1

Browse files
committed
feat: add --verbose flag to show environment info and pass to Docker
1 parent 297f017 commit 42ffba1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

claude.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ show_help() {
2323
echo ""
2424
echo "Options:"
2525
echo " --trace Use claude-trace for logging"
26+
echo " --verbose Show verbose output including environment info"
2627
echo " --help, -h Show this help message"
2728
echo " --version Show version information"
2829
echo " --yolo YOLO mode: Run Claude in Docker (safe but powerful)"
@@ -114,6 +115,7 @@ get_model_arn() {
114115
}
115116

116117
USE_TRACE=false
118+
VERBOSE=false
117119
CLAUDE_ARGS=()
118120
OPEN_SHELL=false
119121
AUTH_MODE="claude"
@@ -142,6 +144,10 @@ while [ $i -lt ${#args[@]} ]; do
142144
USE_TRACE=true
143145
i=$((i + 1))
144146
;;
147+
--verbose)
148+
VERBOSE=true
149+
i=$((i + 1))
150+
;;
145151
--yolo)
146152
USE_DOCKER=true
147153
i=$((i + 1))
@@ -526,6 +532,7 @@ fi
526532
# Pass Claude Code specific environment variables
527533
[ -n "$CLAUDE_CODE_USE_VERTEX" ] && DOCKER_ARGS+=("-e" "CLAUDE_CODE_USE_VERTEX=$CLAUDE_CODE_USE_VERTEX")
528534
[ -n "$DISABLE_TELEMETRY" ] && DOCKER_ARGS+=("-e" "DISABLE_TELEMETRY=$DISABLE_TELEMETRY")
535+
[ "$VERBOSE" = true ] && DOCKER_ARGS+=("-e" "VERBOSE=true")
529536

530537
# Always run as non-root claude user for security and file ownership
531538
# Default to host user UID/GID for seamless file access

0 commit comments

Comments
 (0)