mirror of
https://github.com/Neur0toxine/demo-web-service-go.git
synced 2024-12-04 18:46:03 +03:00
18 lines
293 B
Go
18 lines
293 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/Neur0toxine/demo-web-service-go/cmd"
|
|
"github.com/jessevdk/go-flags"
|
|
)
|
|
|
|
func main() {
|
|
if _, err := cmd.Parser.Parse(); err != nil {
|
|
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type == flags.ErrHelp {
|
|
os.Exit(0)
|
|
}
|
|
os.Exit(-1)
|
|
}
|
|
}
|