fix(main): exit on syntax error

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