mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-21 16:00:29 +00:00
* Fixed #884 * Remove yggdrasil and yggdrasilctl * Fixed #884 Co-authored-by: asolana <asolana@deloitte.es> Co-authored-by: solanav <solanav1337@gmail.com> Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
This commit is contained in:
parent
6fed2a75d7
commit
0da871f528
@ -247,7 +247,12 @@ func run(args yggArgs, ctx context.Context) {
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user