File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ import (
8
8
"io"
9
9
"os"
10
10
"strings"
11
+ "unicode"
11
12
)
12
13
13
14
const (
14
15
version = "1.0.0"
15
16
16
17
usage = `Usage: uni (options) [arg 1]...[arg n]
17
18
Line Filter Usage: [application command] | uni (options)
18
-
19
19
`
20
20
21
21
help = `=================================================
@@ -37,7 +37,6 @@ Line Filter Usage: [application command] | uni (options)
37
37
-h, --help Application help
38
38
--usage Application usage
39
39
-v, --version Application version
40
-
41
40
`
42
41
)
43
42
@@ -62,13 +61,14 @@ func main() {
62
61
// parse command line flags and handle them
63
62
switch {
64
63
case * versionShort , * versionLong :
65
- os .Stdout .WriteString ("uni v" + version + "\n " )
64
+ fmt .Printf ("uni v%s\n " , version )
65
+ fmt .Printf ("Unicode Standard v%s\n " , unicode .Version )
66
66
os .Exit (0 )
67
67
case * helpShort , * helpLong :
68
- os . Stdout . WriteString (help )
68
+ fmt . Println (help )
69
69
os .Exit (0 )
70
70
case * usageLong :
71
- os . Stdout . WriteString (usage )
71
+ fmt . Println (usage )
72
72
os .Exit (0 )
73
73
}
74
74
You can’t perform that action at this time.
0 commit comments