-
Notifications
You must be signed in to change notification settings - Fork 82
Add QCommandLineParser support #760
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
Conversation
What's the use case for using this rather than clap or some other Rust library for command line argument parsing? |
CommandLineParser allows to add some specific Qt option directly. |
I don't really understand the point of binding this. A Rust CLI argument parsing library is probably going to be easier to use in any case. If the |
Right, for writing a Rust CLI it would be something like Is there any usecase for things like As @Be-ing says we have been trying to keep the maintenance burden and the build times 😅 low by only binding the most useful things so far. |
We already take care of standard Qt CLI arguments like |
When we look at all option we can see
It's provided automatically by Qt directly. |
It depends if we think that cxx-qt is only for rust user which wants to use Qt/QML interface so for sure it can be easy to add "clap" rust module directly. But indeed it depends about the target of cxx-qt. |
If you prefer to use QCommandLineParser over Rust CLI argument parsing libraries, then I think it would be easier to have your |
I've added an issue regarding CXX-Qt-lib-extra here: #766 As we seem to venture into this territory now reasonably often. |
Merge in #860 |
No description provided.