We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a263c56 + 1e9daa9 commit c015969Copy full SHA for c015969
1 file changed
main.go
@@ -1,21 +1,13 @@
1
package main
2
3
import (
4
- "fmt"
5
"os"
6
7
"github.com/pepabo/onecli/cmd"
8
)
9
10
-var version string
11
-
12
func main() {
13
- if len(os.Args) > 1 && os.Args[1] == "--version" {
14
- fmt.Printf("onecli version %s\n", version)
15
- return
16
- }
17
if err := cmd.Execute(); err != nil {
18
- fmt.Fprintf(os.Stderr, "Error: %v\n", err)
19
os.Exit(1)
20
}
21
0 commit comments