fix(main): exit on syntax error #4

Merged
Emmanuel BENOîT merged 1 commit from tseeker/gomonop:20240720-fix-main into master 2024-07-20 10:15:14 +02:00
Showing only changes of commit 9fac656cdf - Show all commits

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