-
Notifications
You must be signed in to change notification settings - Fork 21
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
Bug: username expected when publish subcommand is used even if specified #169
Comments
this worked:
so how come I need to specify the username twice? |
mqttui v0.20 is not the latest version (are you using the one packaged on alpine?) Anyway, that's something that wasn't really changed since then. The idea here is to require both username and password or none of them. With my version this is printed more clear:
Using mqttui v0.20 (checked out the tag and built it from there):
So something is weird here as my output also differs from yours there 👀 |
yes Im on alpine. there was an update of the mqttui package few days ago. now I am on 0.21.0. still the same issue. I guess the alpine package is somehow different? anyway, it works when I specify the username twice as mentioned above. I can live with that. thanks for this great tool. feel free to close this issue. |
A question that definitely remains: Why do you need a username without a password? Also… it's somewhat strange that the CLI handling seems to be different on Alpine… would be interesting to find out why it's different. |
I do use a password. it is in the env variable MQTTUI_PASSWORD. hence why you dont see it in my cli invocation. good question regarding the difference in alpine. are you the maintainer of the aport? |
Ah, that was missing in the initial report. I will take a look into that (just not now).
Nope, I am not the maintainer of that package. But I would assume that it's not that far from the normal |
This results from being a global option which allows the arguments to be either You could also specify the username as environment variable too, but that doesnt fix the root cause of this. MQTT Options could no longer be global, so they would need to be specified as |
not sure but I think Ive found it clap-rs/clap#5020 |
The text was updated successfully, but these errors were encountered: