You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): wrap fs.Parse with reorderFlagsBeforePositional in remaining commands (#25)
Seven CLI subcommands called fs.Parse(args) directly instead of going
through reorderFlagsBeforePositional, so any positional argument before
a flag stopped flag parsing and silently fell through to flag defaults.
For commands that take a --db flag this is a production hazard. Running
sluice binding remove 2 --db /custom/path
stopped at "2", missed --db, and operated on the default
data/sluice.db instead of the requested path. The same shape applies to
cred remove, policy remove, policy import, mcp remove, channel update,
and channel remove.
Wrap each fs.Parse call with reorderFlagsBeforePositional like the other
sibling subcommands already do, and add a regression test per command
that exercises the positional-before-flags ordering.
Also fix the cred dispatcher's usage line to mention the "update"
subcommand that was added in v0.8.0.
0 commit comments