hello. After upgrading to webapp-config 1.5.4 the "-h" flag does not work anymore. In 1.5.3 i could do a: webapp-config -I -h zabbix30 zabbix 3.0.0_alpha3 wich works fine. But after upgrading to 1.5.4 i get: testing ~ # webapp-config -I -h zabbix30 zabbix 3.0.0_alpha3 usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION> webapp-config: error: argument -I/--install: expected 2 argument(s) testing ~ # Any hints? Thanks and cheers t. Reproducible: Always
I think that not the -h flag is the problem, but just a changed interpretation of the arguments without the usage-message being updated webapp-config -h app.my.domain -U app 1.2.3 -d . is working as expected, webapp-config -U -h app.my.domain -d . app 1.2.3 which would be what the usage message is telling you (usage: webapp-config [-ICU] [-dghus] <APPLICATION VERSION>) is not working... It seems to me, that <APPLICATION VERSION> are not the last two arguments anymore, but have to be the next two after -U.
Interesting. Thanks for the hint Markus.
(In reply to Markus Kaindl from comment #1) > It seems to me, that <APPLICATION VERSION> are not the last two arguments > anymore, but have to be the next two after -U. Yes, this seems to be a valid workaround. Both `man 8 webapp-config` and `webapp-config --help` currently seem to provide incorrect instructions.
That's indeed the solution. A change of documentation is well needed but what is happening here is that the way webapp-config handles command line flags has changed from 1.5.3 to 1.5.4 to ensure python3 compatibility. The usage from webapp-config --help should clarify this but I agree that proper documentation should be changed to reflect this as well.
Could it be that this was changed again, without updating the docs, again? In the past, as mentioned before, we could do: webapp-config -U -h app.my.domain -d . app 1.2.3 As per (current! documentation) This was changed later apparently to: webapp-config -h app.my.domain -U app 1.2.3 -d . Now, assuming that -d is optional, would suggest that webapp-config -h app.my.domain -U app 1.2.3 would work as well for me, it seems only following the original documentation-ish works webapp-config -U app 1.2.3 -h app.my.domain -d . Can we change the title of the bug to simply state 'update webapp-config documentation' so this will get fixed in the next 5 years? :)