mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
cmd/gio: update usage documentation
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+4
-3
@@ -33,15 +33,16 @@ type errWriter struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
target = flag.String("target", "", "specify target (ios or android)")
|
target = flag.String("target", "", "specify target (ios, tvos, android)")
|
||||||
archNames = flag.String("arch", "", "specify architecture(s) to include")
|
archNames = flag.String("arch", "", "specify architecture(s) to include")
|
||||||
destPath = flag.String("o", "", "output file (for Android .aar) or directory (for iOS .framework)")
|
destPath = flag.String("o", "", "output file (for Android .aar) or directory (for iOS/tvOS .framework)")
|
||||||
verbose = flag.Bool("v", false, "verbose output")
|
verbose = flag.Bool("v", false, "verbose output")
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
flag.Usage = func() {
|
flag.Usage = func() {
|
||||||
fmt.Fprintf(os.Stderr, "Usage: %s [flags] <pkg>\n", os.Args[0])
|
fmt.Fprintf(os.Stderr, "Gio is a tool for building and running gio programs.\n\n")
|
||||||
|
fmt.Fprintf(os.Stderr, "Usage:\n\n\tgio [flags] <pkg>\n\n")
|
||||||
flag.PrintDefaults()
|
flag.PrintDefaults()
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user