-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathargs.go
73 lines (70 loc) · 1.86 KB
/
args.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* Copyright (c) Cherri
*/
package main
import "github.com/electrikmilk/args-parser"
func init() {
args.CustomUsage = "[FILE]"
args.Register(args.Argument{
Name: "version",
Short: "v",
Description: "Print version information.",
})
args.Register(args.Argument{
Name: "help",
Short: "h",
Description: "Print this usage information.",
})
args.Register(args.Argument{
Name: "share",
Short: "s",
Description: "Set the signing mode.",
Values: []string{"anyone", "contacts"},
DefaultValue: "contacts",
ExpectsValue: true,
})
args.Register(args.Argument{
Name: "debug",
Short: "d",
Description: "Create plist file, print debug and stack traces.",
})
args.Register(args.Argument{
Name: "output",
Short: "o",
Description: "Set custom output file path.",
})
args.Register(args.Argument{
Name: "import",
Short: "i",
Description: "Import compiled Shortcut (ignored if unsigned).",
})
args.Register(args.Argument{
Name: "comments",
Short: "c",
Description: "Create comment actions for text comments (e.g. //, /**/)",
})
args.Register(args.Argument{
Name: "hubsign",
Description: "Sign the compiled Shortcut using RoutineHub's remote signing service.",
})
args.Register(args.Argument{
Name: "no-ansi",
Description: "Don't output ANSI escape sequences that format the output.",
})
args.Register(args.Argument{
Name: "skip-sign",
Description: "Do not sign the compiled Shortcut.",
})
args.Register(args.Argument{
Name: "action",
Description: "Print action definition. Empty prints all definitions.",
DefaultValue: "",
ExpectsValue: true,
})
args.Register(args.Argument{
Name: "glyph",
Description: "Search glyphs in the compiler.",
DefaultValue: "",
ExpectsValue: true,
})
}