-
I frequently run into an issue where I typo the name of a flag I defined. So let's say, I defined a flag of name Having said all this, I know I could wrap my code with another guard but that also seems like it'll lead to bloat. I am wondering if anyone has any thoughts on this. E.g. I was wondering what people think about using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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). |
Beta Was this translation helpful? Give feedback.
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).