-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
38 lines (30 loc) · 689 Bytes
/
main.go
File metadata and controls
38 lines (30 loc) · 689 Bytes
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
package main
// This file implements the CLIP main function
import (
"flag"
"fmt"
"runtime"
)
// Command-line flags for special modes
// not normally used by the user.
var (
//flag_complete *bool = flag.Bool("c", false, "bash completion of arguments")
flag_daemon *bool = flag.Bool("d", false, "run in daemon mode")
flag_version *bool = flag.Bool("v", false, "show version and exit")
)
func main() {
flag.Parse()
if *flag_version {
fmt.Println(`CLIP 0.0.80 "Hupsje"`)
fmt.Println("Go ", runtime.Version())
return
}
// if *flag_complete {
// clip.AutoComplete(flag.Args())
// return
// }
if *flag_daemon {
NewPlayer().Daemon()
}
MainClient(flag.Args())
}