diff --git a/cmd/yggdrasil/main.go b/cmd/yggdrasil/main.go index 58b8230d..29921c1b 100644 --- a/cmd/yggdrasil/main.go +++ b/cmd/yggdrasil/main.go @@ -289,7 +289,12 @@ func run(args yggArgs, ctx context.Context, done chan struct{}) { return default: // No flags were provided, therefore print the list of flags to stdout. + fmt.Println("Usage:") flag.PrintDefaults() + + if args.getaddr || args.getsnet { + fmt.Println("\nError: You need to specify some config data using -useconf or -useconffile.") + } } // Have we got a working configuration? If we don't then it probably means // that neither -autoconf, -useconf or -useconffile were set above. Stop diff --git a/yggdrasil b/yggdrasil new file mode 100755 index 00000000..5a7d81d9 Binary files /dev/null and b/yggdrasil differ diff --git a/yggdrasilctl b/yggdrasilctl new file mode 100755 index 00000000..416f5d4a Binary files /dev/null and b/yggdrasilctl differ