pflag icon indicating copy to clipboard operation
pflag copied to clipboard

Is SliceValue() a purely internal interface?

Open papadeltasierra opened this issue 1 year ago • 0 comments

My use case is having parsed command line variables at start-of-day, I need to refer to them later. I can use pflags.Lookup() to get a Value but this seems to only be able to return a string representation of the parameter's value. My parameter happens to be a []string but I don't see how to read this unless I parse the string representation, which seems far from ideal.

papadeltasierra avatar Feb 01 '24 11:02 papadeltasierra