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
I'm using Cobra in my projects to manage my commands and Cobra is using PFlag to manage flags and since it's using POSIX/GNU-style (with -- instead of -) I'm getting that error below
After adding snippet below to add compatibility I'm getting
--prefork-child Is a child process
unknown shorthand flag: 'p'in -prefork-child
unknown shorthand flag: 'p'in -prefork-child
It's better to use an environment variable as they are more standard.
They way flags are parsed isn't standardized within the Go ecosystem.
Fixes: #1782
I'm using Cobra in my projects to manage my commands and Cobra is using PFlag to manage flags and since it's using
POSIX/GNU-style
(with--
instead of-
) I'm getting that error belowAfter adding snippet below to add compatibility I'm getting
Also without
I'm getting
The text was updated successfully, but these errors were encountered: