summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-23 19:03:35 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 17:49:55 -0700
commitd7e3a90d48eba9c31733cfd530e35a5560611dc7 (patch)
tree6717bb94d4c125575dfb3363e59a06682f1b4b6a /plugins/code-modernization/scripts
parent2ce9d0dace1239bec65379ecd3834258574c9073 (diff)
code-modernization: put flags after the positional arguments
assess and harden said --show-secrets could appear anywhere and that the system dir was the first non-flag token. Since the commands declare named arguments, $system is filled with the first token, so "--show-secrets carddemo" puts legacy/--show-secrets into every path template, and harden's workflow rejects a system name that starts with a dash. The old rule contradicted how the arguments bind. The usage text now says flags go after the positional arguments, and the README shows --show-secrets in that position on the assess and harden usage lines. assess --portfolio keeps its mode flag first. No parsing logic is added. A flag-first invocation now gets a request to run again in the right order, where a model used to work out the intent on its own.
Diffstat (limited to 'plugins/code-modernization/scripts')
0 files changed, 0 insertions, 0 deletions