-
Notifications
You must be signed in to change notification settings - Fork 709
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
Wrong flags in Usage helper text #91
Comments
Hm, no, the flag is not There is a problem with using dots in flags when executing from Powershell, though, which is unfortunate. It stops parsing at the dot, so you need to do |
On testing on my system, I cannot get |
Sorry, I inserted the wrong text here (I tested a lot of options). here is the correct one (
Using
|
Well, I think that the problem with using dots in flags when executing from Powershell should be at least described in the Usage text, it would prevent a lot of trouble IMO. Thanks! |
I've considered if we should actually just change the flags. The current ones were initially copied from node_exporter, but the gains from having a similar pattern are probably quite small. It should be noted that this is only a problem in powershell, though. No other command line parser in Windows is affected. |
hello @carlpett I confirmed the problem with powershell. IMO this PowerShell "problem" could be stated in the Usage text as a warning to the user. Thanks! |
I agree with @carlpett we could simply change the flags to get rid of this issue. |
I was trying to manually run
wmi_exproter.exe
with custom options, because I wanted the port to listen at 9100 (like node_exporter).However, the flag listed in the command-line usage wasn't working, issuing the error
flag provided but not defined: -addr
:So I found out that it needed to use two hyphens (
--addr ":9100"
) instead of one (-addr ":9100"
), for every option.So I think a fix is needed in the Usage text.
The text was updated successfully, but these errors were encountered: