3 ms·
I've done something like this before: > id = flag.Int64("id", -1, "ID of the thing I want") Obviously that doesn't work for booleans, but you could take the b
by spyspy 9y ago
I've done something like this before:
> id = flag.Int64("id", -1, "ID of the thing I want")
Obviously that doesn't work for booleans, but you could take the boolean input as a string and then use strconv.ParseBool