xmake
xmake copied to clipboard
Add short flags to options
Is your feature request related to a problem? Please describe.
Currently in XMake when I add an option like for example game, I must always use --game= when configuring it.
In my case, configuring my project would look something like this at the moment: xmake f -a amd64 -m debug --game=portal2
Describe the solution you'd like
It would be pretty great if option could add an extra argument that sets the short flag so for example:
option("game", "g")
where g is the short flag and could then be set via the cli using -g.
Configuring my project would then be shortened to just: xmake -f -a amd64 -m debug -g portal2
Describe alternatives you've considered
No response
Additional context
No response
This may increase the chance of configuration name conflicts. Maybe I will consider this in the future, but it is not a priority at the moment.