Skip to content

accessing a flag that doesn't exist #1810

Answered by dvaumoron
till asked this question in Q&A
Discussion options

You must be logged in to vote

The good practice is to use a const for your flag name.

Edit: You can also use the Destination field of StringFlag struct (if you don't bother to allocate the var when it's not needed).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dearchap
Comment options

Answer selected by dearchap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants