fix(main): exit on syntax error #4
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 {
|
||||
fmt.Printf("Syntax: %s <plugin> [arguments]\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] {
|
||||
|
|
Loading…
Reference in a new issue