Skip to content
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

Documentation needed for String usage #3

Open
SamHerts opened this issue Oct 14, 2024 · 0 comments
Open

Documentation needed for String usage #3

SamHerts opened this issue Oct 14, 2024 · 0 comments

Comments

@SamHerts
Copy link

Configurator ReadMe.md doesn't specify how to utilize a string configuration

Recommend adding a usage example such as:

Add string configuration to configurator.h:

PREFIX_CFG_CLI(example, my_string, STRING, NULLSTRING, "Example Configuration String", my_string, 'S', "Specify an Actual String") \

Utilize the string configuration within your program

prefix_cfg_t cmd_options;
prefix_config_init(&cmd_options, argc, argv);    
const std::string& my_string = cmd_options.example_my_string;
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

No branches or pull requests

1 participant