]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/cmd/nncp-xfer/main.go
Documentation updates
[nncp.git] / src / cypherpunks.ru / nncp / cmd / nncp-xfer / main.go
index 434613d495773988fb7cdc0273b5d10a2ca8b776..669eadc7a1e52cedc543448f9114b4b9a7bda1aa 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.Fprintf(os.Stderr, "Usage: %s [options] DIR\nOptions:", os.Args[0])
+       fmt.Fprintf(os.Stderr, "Usage: %s [options] DIR\nOptions:\n", os.Args[0])
        flag.PrintDefaults()
 }
 
@@ -50,7 +50,8 @@ func main() {
                txOnly   = flag.Bool("tx", false, "Only transfer packets")
                force    = flag.Bool("force", false, "Force outbound directories creation")
                keep     = flag.Bool("keep", false, "Do not delete transferred packets")
-               debug    = flag.Bool("debug", false, "Enable debugging information")
+               quiet    = flag.Bool("quiet", false, "Print only errors")
+               debug    = flag.Bool("debug", false, "Print debug messages")
                version  = flag.Bool("version", false, "Print version information")
                warranty = flag.Bool("warranty", false, "Print warranty information")
        )
@@ -84,6 +85,7 @@ func main() {
        if err != nil {
                log.Fatalln("Can not parse config:", err)
        }
+       ctx.Quiet = *quiet
        ctx.Debug = *debug
 
        var nodeOnly *nncp.Node