This commit is contained in:
asolana 2022-05-12 11:23:13 +02:00
parent 42d4298e19
commit 74910f96da
3 changed files with 5 additions and 0 deletions

View file

@ -289,7 +289,12 @@ func run(args yggArgs, ctx context.Context, done chan struct{}) {
return return
default: default:
// No flags were provided, therefore print the list of flags to stdout. // No flags were provided, therefore print the list of flags to stdout.
fmt.Println("Usage:")
flag.PrintDefaults() 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 // Have we got a working configuration? If we don't then it probably means
// that neither -autoconf, -useconf or -useconffile were set above. Stop // that neither -autoconf, -useconf or -useconffile were set above. Stop

BIN
yggdrasil Executable file

Binary file not shown.

BIN
yggdrasilctl Executable file

Binary file not shown.