From 506026186a31d25260cfd1f47f1ff1ff872456d1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 14:07:54 +0000 Subject: [PATCH] Improve unknown argument error guidance Clarify unknown-flag and unknown-argument failures with actionable usage hints for move-github-dotgithub.sh and pr-comment.sh. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- claude-workflows/pr-review/scripts/pr-comment.sh | 2 +- scripts/move-github-dotgithub.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/claude-workflows/pr-review/scripts/pr-comment.sh b/claude-workflows/pr-review/scripts/pr-comment.sh index a8145e32..b053f32b 100755 --- a/claude-workflows/pr-review/scripts/pr-comment.sh +++ b/claude-workflows/pr-review/scripts/pr-comment.sh @@ -87,7 +87,7 @@ while [ $# -gt 0 ]; do shift ;; *) - echo "Error: Unknown argument: $1" + echo "Error: Unknown argument: $1. Use: --severity --title --why [--no-suggestion]" exit 1 ;; esac diff --git a/scripts/move-github-dotgithub.sh b/scripts/move-github-dotgithub.sh index c9cbe5f4..0b2cff19 100755 --- a/scripts/move-github-dotgithub.sh +++ b/scripts/move-github-dotgithub.sh @@ -16,7 +16,7 @@ for arg in "$@"; do echo " --push git add, commit, and push after moving files" exit 0 ;; - *) echo "Unknown flag: $arg"; exit 1 ;; + *) echo "Error: Unknown flag: $arg. Use --help for usage." >&2; exit 1 ;; esac done