1
0
forked from extern/smegmesh
smegmesh/cmd/wg-mesh/main.go
Tim Beatham fa16480521 Commit
2023-09-18 12:59:28 +01:00

22 lines
414 B
Go

package main
import (
"fmt"
"os"
"github.com/akamensky/argparse"
)
func main () {
parser := argparse.NewParser("wg-mesh",
"wg-mesh Manipulate WireGuard meshes")
newMeshCmd := parser.NewCommand("new-mesh", "Create a new mesh")
err := parser.Parse(os.Args)
if err != nil {
fmt.Print(parser.Usage(err))
return
}
fmt.Println(newMeshCmd.Happened())
}