fix(main): exit on syntax error
All checks were successful
Run tests and linters / test (pull_request) Successful in 44s
Run tests and linters / build (pull_request) Successful in 46s
Run tests and linters / lint (pull_request) Successful in 1m23s
Run tests and linters / test (push) Successful in 46s
Run tests and linters / build (push) Successful in 48s
Run tests and linters / lint (push) Successful in 1m21s
All checks were successful
Run tests and linters / test (pull_request) Successful in 44s
Run tests and linters / build (pull_request) Successful in 46s
Run tests and linters / lint (pull_request) Successful in 1m23s
Run tests and linters / test (push) Successful in 46s
Run tests and linters / build (push) Successful in 48s
Run tests and linters / lint (push) Successful in 1m21s
This commit is contained in:
parent
78af496fe9
commit
9fac656cdf
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -29,7 +29,8 @@ func getPlugin() plugin.Plugin {
|
||||||
if len(os.Args) < 2 {
|
if len(os.Args) < 2 {
|
||||||
fmt.Printf("Syntax: %s <plugin> [arguments]\n", ownName)
|
fmt.Printf("Syntax: %s <plugin> [arguments]\n", ownName)
|
||||||
fmt.Printf(" %s --plugin|-p\n", ownName)
|
fmt.Printf(" %s --plugin|-p\n", ownName)
|
||||||
fmt.Printf(" %s --version|-v", ownName)
|
fmt.Printf(" %s --version|-v\n", ownName)
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch os.Args[1] {
|
switch os.Args[1] {
|
||||||
|
|
Loading…
Reference in a new issue