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

This commit is contained in:
Emmanuel BENOîT 2024-07-20 10:11:31 +02:00
parent 78af496fe9
commit 9fac656cdf
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -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] {