Skip to content

Commit e015924

Browse files
committed
[uni.go] updated format of help and usage string constants
1 parent 6f143fd commit e015924

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

uni.go

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,33 @@ import (
1212

1313
const (
1414
version = "1.0.0"
15-
usage = "Usage: uni (options) [arg 1]...[arg n]\nLine Filter Usage: [application command] | uni (options)\n"
16-
help = "=================================================\n" +
17-
" uni v" + version + "\n" +
18-
" Copyright 2018 Christopher Simpkins\n" +
19-
" MIT License\n\n" +
20-
" Source: https://github.com/source-foundry/uni\n" +
21-
"=================================================\n\n" +
22-
" Usage:\n" +
23-
" - With command line arguments:\n" +
24-
" $ uni (options) [arg 1]...[arg n]\n" +
25-
" - As line filter:\n" +
26-
" $ [application command] | uni (options)\n\n" +
27-
" Options:\n" +
28-
" -g, --glyph Search for glyph with Unicode code point\n" +
29-
" -h, --help Application help\n" +
30-
" --usage Application usage\n" +
31-
" -v, --version Application version\n\n"
15+
16+
usage = `Usage: uni (options) [arg 1]...[arg n]
17+
Line Filter Usage: [application command] | uni (options)
18+
19+
`
20+
21+
help = `=================================================
22+
uni
23+
Copyright 2018 Christopher Simpkins
24+
MIT License
25+
26+
Source: https://github.com/source-foundry/uni
27+
=================================================
28+
Usage:
29+
- With command line arguments:
30+
$ uni (options) [arg 1]...[arg n]
31+
- As line filter:
32+
$ [application command] | uni (options)
33+
Default:
34+
Search for Unicode code point(s) with glyph(s)
35+
Options:
36+
-g, --glyph Search for glyph(s) with Unicode code point(s)
37+
-h, --help Application help
38+
--usage Application usage
39+
-v, --version Application version
40+
41+
`
3242
)
3343

3444
var versionShort, versionLong, helpShort, helpLong, usageLong, glyphShort, glyphLong *bool

0 commit comments

Comments
 (0)