premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

List user defined options separated with premake system options when using "premake --help"

Open mercury233 opened this issue 2 years ago • 2 comments

What problem will this solve? When I'm using "premake --help", the options I created in premake5.lua mixed up with the options provided by premake system.

What might be a solution? List user defined options separated with premake system options when using "premake --help"

What other alternatives have you already considered?

Anything else we should know?

mercury233 avatar Apr 13 '22 08:04 mercury233

Looks like there's already an undocumented feature for this: https://github.com/premake/premake-core/blob/5c2a1cccd7fc70d691bba0333718e12b2572ee4a/src/base/help.lua#L18-L31

You just need to specify a category when calling newoption and it will split them out.

samsinsane avatar Apr 13 '22 13:04 samsinsane

Speaking of docs, there's a doc that needs to be updated, os.is was deprecated by os.istarget or os.ishost

mercury233 avatar Apr 13 '22 13:04 mercury233