cv / sd

A tool to keep utility scripts neatly organized.
MIT License
14 stars 1 forks source link

CLI is parsing flags passed to scripts #3

Open fgrehm opened 6 years ago

fgrehm commented 6 years ago
$ sd kube exec app rake -T db
Error: unknown shorthand flag: 'T' in -T
Usage:
  sd kube exec app [flags]
cv commented 6 years ago

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