reworked usage/description for netclient and added verbosity flags

This commit is contained in:
0xdcarns
2022-03-24 11:27:42 -04:00
parent 173916a4b3
commit 30a40aaed6
5 changed files with 47 additions and 6 deletions

View File

@@ -17,13 +17,14 @@ var version = "dev"
func main() {
app := cli.NewApp()
app.Name = "Netclient CLI"
app.Usage = "Netmaker's netclient agent and CLI. Used to perform interactions with Netmaker server and set local WireGuard config."
app.Name = "Netclient"
app.Version = version
ncutils.SetVersion(version)
cliFlags := cli_options.GetFlags(ncutils.GetHostname())
app.Commands = cli_options.GetCommands(cliFlags[:])
app.Description = "Used to perform interactions with Netmaker server and set local WireGuard config."
app.Usage = "Netmaker's netclient agent and CLI."
app.UsageText = "netclient [global options] command [command options] [arguments...]. Adjust verbosity of given command with -V, -VV or -VVV (max)."
setGarbageCollection()