Don't hardwire executable names; use logical names instead

We could use `os.Args[0]` instead of hardwired names, but that ends up
being e.g. `/home/weave/weaver`. So, use logical names instead.
This commit is contained in:
Michael Bridgen committed 2014-12-24 11:52:50 +00:00
1 parent b0b7649c8e
commit 0a14eb58b2
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func main() {
flag.Parse()
if justVersion {
io.WriteString(os.Stdout, fmt.Sprintf("weavedns %s\n", version))
io.WriteString(os.Stdout, fmt.Sprintf("weave DNS %s\n", version))
os.Exit(0)
}