mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 14:45:07 +03:00
Fixed #884
This commit is contained in:
parent
42d4298e19
commit
74910f96da
3 changed files with 5 additions and 0 deletions
|
@ -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
BIN
yggdrasil
Executable file
Binary file not shown.
BIN
yggdrasilctl
Executable file
BIN
yggdrasilctl
Executable file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue