]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cypherpunks.ru/nncp/cmd/nncp-file/main.go
Ability to read the data from stdin for nncp-file
[nncp.git] / src / cypherpunks.ru / nncp / cmd / nncp-file / main.go
index 824cdb0a2a7820308a4e4b404d8276bbc808d906..7256bcf5ee9e453bac886658706c50bdc3d62954 100644 (file)
@@ -35,6 +35,9 @@ func usage() {
        fmt.Fprintln(os.Stderr, "nncp-file -- send file\n")
        fmt.Fprintf(os.Stderr, "Usage: %s [options] SRC NODE:[DST]\nOptions:\n", os.Args[0])
        flag.PrintDefaults()
+       fmt.Fprint(os.Stderr, `
+If SRC equals to -, then read data from stdin to temporary file.
+`)
 }
 
 func main() {