]> Cypherpunks.ru repositories - nncp.git/commitdiff
Fix usage formatting
authorSergey Matveev <stargrave@stargrave.org>
Sat, 7 Jan 2017 15:36:44 +0000 (18:36 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 7 Jan 2017 15:36:44 +0000 (18:36 +0300)
src/cypherpunks.ru/nncp/cmd/nncp-check/main.go
src/cypherpunks.ru/nncp/cmd/nncp-daemon/main.go
src/cypherpunks.ru/nncp/cmd/nncp-file/main.go
src/cypherpunks.ru/nncp/cmd/nncp-freq/main.go
src/cypherpunks.ru/nncp/cmd/nncp-log/main.go
src/cypherpunks.ru/nncp/cmd/nncp-mail/main.go
src/cypherpunks.ru/nncp/cmd/nncp-pkt/main.go
src/cypherpunks.ru/nncp/cmd/nncp-stat/main.go
src/cypherpunks.ru/nncp/cmd/nncp-toss/main.go
src/cypherpunks.ru/nncp/cmd/nncp-xfer/main.go

index 9eac63981ddd06344125c159893a4a709f624359..69cb1253e491ec6ababe74052d51cc2017eb75b1 100644 (file)
@@ -32,7 +32,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-check -- verify Rx/Tx packets checksum\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 90b467d98dbcfe7972741dda2c7b6a97f02450a2..01edc27a7424213cbd0167e650ce1edc7f0d1527 100644 (file)
@@ -35,7 +35,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-daemon -- TCP daemon\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 6730a26812fed57810eb64350ac875aae553fd3a..c94ecd53cc837d0e5aa8418f41383f7fbabcdf6c 100644 (file)
@@ -33,7 +33,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-file -- send file\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options] SRC NODE:DST\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options] SRC NODE:DST\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 64db25ada6acce7b6aadea531a1387432c95a658..87027144d593dc668223dce43b9c35474b0dbd22 100644 (file)
@@ -33,7 +33,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-freq -- send file request\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options] NODE:SRC DST\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options] NODE:SRC DST\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 4ca8c84dcd2be93af89ce048cfe48a8487e1ee14..71368933144e8b7e528e543129eaf23b320d0485 100644 (file)
@@ -33,7 +33,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-log -- read logs\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 5c7d16b73e655726cf0d8ace81d4c8c1baab917e..89b1151202ebfab7c1c78cfe1fd98f3eab4eeb26 100644 (file)
@@ -34,7 +34,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-mail -- send email\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options] NODE USER ...\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options] NODE USER ...\nOptions:", os.Args[0])
        flag.PrintDefaults()
        fmt.Fprintln(os.Stderr, "Email body is read from stdin.")
 }
index b19665282097f38885fc753d35b32d2351c5d457..b866012d7806af3784d9916dec6b10f18cff2c5a 100644 (file)
@@ -38,7 +38,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-pkt -- parse raw packet\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
        flag.PrintDefaults()
        fmt.Fprintln(os.Stderr, "Packet is read from stdin.")
 }
index 5481a4e425abb93ef112dd2e002e4e1416c7c70c..45b6e780dab750aba5229573bf1c6e783cec868d 100644 (file)
@@ -33,7 +33,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-stat -- show queued Rx/Tx stats\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 7bdffb6d74e42ab8b96f520e3a959bc6b71d2229..e47f67b41c76a2d37539acfde7f62a4fcc83875b 100644 (file)
@@ -32,7 +32,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-toss -- process inbound packets\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options]\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }
 
index 59d7d254c62b962aa94d43e749feb9ae2875528d..0a21611a7590cb0125dbdfe51782fd067f9e7fdd 100644 (file)
@@ -37,7 +37,7 @@ import (
 func usage() {
        fmt.Fprintf(os.Stderr, nncp.UsageHeader())
        fmt.Fprintln(os.Stderr, "nncp-xfer -- copy inbound and outbounds packets\n")
-       fmt.Fprintln(os.Stderr, "Usage: %s [options] DIR\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options] DIR\nOptions:", os.Args[0])
        flag.PrintDefaults()
 }