How to rewrite "Usage" on help of console app
Unsolved
General and Desktop
-
@Kien-Bui said in How to rewrite "Usage" on help of console app:
How to change the location of "[options]" to after command Or How to rewrite "Usage" Part
What is the problem? It is your code, right? Then change it accordingly.
I guess you have something likeQString usage = "Usage: ./app [options] command";
somewhere in your app. Then change it to
QString usage = "Usage: ./app command [options]";
Isn't that hard...
Same for "Usage" part. -
@Kien-Bui I don't know what excatly you want to change in Usage part.
See http://doc.qt.io/qt-5/qcommandlineparser.html
I don't know whether you can move [options] behind command and I don't know why you actually want to do this. Usually you first pass options to an app and then the command, not other way around.