Skip to content

Add support for variable prefix#42

Open
JoakimSoderberg wants to merge 1 commit intodocopt:masterfrom
JoakimSoderberg:fix_keyword_varnames
Open

Add support for variable prefix#42
JoakimSoderberg wants to merge 1 commit intodocopt:masterfrom
JoakimSoderberg:fix_keyword_varnames

Conversation

@JoakimSoderberg
Copy link

It is currently not possible to use an option or command name that happesn to be
a C keyword. So for example trying to have a command named "register" will fail
with a compilation error.

This introduces support for setting a prefix for the variable names defined
in the struct. So for example using prefix _ would mean you access
the command via args._register instead.

It is currently not possible to use an option or command name that happesn to be
a C keyword. So for example trying to have a command named "register" will fail
with a compilation error.

This introduces support for setting a `prefix` for the variable names defined
in the struct. So for example using prefix `_` would mean you access
the command via `args._register` instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant