Closed

Description
Currently the flag
package has functions for parsing string
.
In order use a rune
flag one has to
- define it as
string
flag - check rune count using
utf8.RuneCountInString
to know if is has one or more rune. - if rune count is more than one, produce an error or call
flag.Usage
and exit. ( But the usage information
thatflag.Usage
gives will contain-flag string
for that flag. so it requires to add`rune`
to that flag's usage
information to getflag.Usage
show-flag rune
for that flag's usage information. ) - type cast it to
[]rune
- get the first
rune
by using index0