-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'consul lock' should recognize '--' to stop processing command line switches #776
Comments
+1, this will make it consistent with other programs' behavior WRT argument passing |
Thanks for the report! This was a relatively simple fix, since Go's |
many thanks! |
I am still seeing this behavior on 0.5.2 |
Thank you for reporting! I can still reproduce the described behavior. Since there is a workaround by using quotes, I am going to close this issue, because it not such a big deal for us. If you or someone else would be willing to provide a PR, we would be happy to merge it. |
Under 'consul lock', on calling a child process that takes '-v' as an argument, we get the following:
We can enclose the child command line with quotes, but this adds a required layer of quoting to a bash command line (never a desirable thing if it can be avoided).
Desired solution: use '--' switch to end switch processing. Anything that follows would be presumed to be part of "child"
Alternatively: don't necessarily need a -- switch. Just have first non-option argument be "prefix", and all following arguments be "child", as the --help message suggests.
The text was updated successfully, but these errors were encountered: