sd icon indicating copy to clipboard operation
sd copied to clipboard

CLI is parsing flags passed to scripts

Open fgrehm opened this issue 7 years ago • 1 comments

$ sd kube exec app rake -T db
Error: unknown shorthand flag: 'T' in -T
Usage:
  sd kube exec app [flags]

fgrehm avatar Apr 09 '18 20:04 fgrehm

Until we can parse the flags that each script (or, in Cobra parlance, command) has, by reading a special list of comments in the source file or similar trick, we can't delegate all flags to the script.

In the meantime, use -- to indicate you're done passing args to sd, like this:

$ sd kube exec app -- rake -T db

cv avatar Apr 09 '18 20:04 cv