From c29d1f38b9dd329215808122649dbf08703e626c Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 29 Apr 2017 10:30:36 +0300 Subject: [PATCH] Better to call option as -chunked --- doc/chunked.texi | 2 +- doc/cmds.texi | 4 ++-- src/cypherpunks.ru/nncp/cmd/nncp-file/main.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/chunked.texi b/doc/chunked.texi index 27ad509..01103e2 100644 --- a/doc/chunked.texi +++ b/doc/chunked.texi @@ -10,7 +10,7 @@ than huge file's size. You can transfer those chunks on different storage devices, and/or at different time, reassembling the whole packet on the destination node. -Splitting is done with @ref{nncp-file, nncp-file -chunk} command and +Splitting is done with @ref{nncp-file, nncp-file -chunked} command and reassembling with @ref{nncp-reass} command. Chunked @file{FILE} produces @file{FILE.nncp.meta}, diff --git a/doc/cmds.texi b/doc/cmds.texi index 9f47b8d..5d7d633 100644 --- a/doc/cmds.texi +++ b/doc/cmds.texi @@ -113,7 +113,7 @@ bind to and listen. @section nncp-file @verbatim -% nncp-file [options] [-chunk INT] SRC NODE:[DST] +% nncp-file [options] [-chunked INT] SRC NODE:[DST] @end verbatim Send @file{SRC} file to remote @option{NODE}. @file{DST} specifies @@ -132,7 +132,7 @@ taken from stdin, then you have to have 2 GiB of disk space for that temporary file and resulting encrypted packet. You can control where temporary file will be stored using @env{TMPDIR} environment variable. -If @option{-chunk} is specified, then source file will be split +If @option{-chunked} is specified, then source file will be split @ref{Chunked, on chunks}. @option{INT} is the desired chunk size in KiBs. This mode is more CPU hungry. Pay attention that chunk is saved in spool directory immediately and it is not deleted if any error occurs. diff --git a/src/cypherpunks.ru/nncp/cmd/nncp-file/main.go b/src/cypherpunks.ru/nncp/cmd/nncp-file/main.go index 842f709..0b61aba 100644 --- a/src/cypherpunks.ru/nncp/cmd/nncp-file/main.go +++ b/src/cypherpunks.ru/nncp/cmd/nncp-file/main.go @@ -45,7 +45,7 @@ func main() { cfgPath = flag.String("cfg", nncp.DefaultCfgPath, "Path to configuration file") niceRaw = flag.Int("nice", nncp.DefaultNiceFile, "Outbound packet niceness") minSize = flag.Uint64("minsize", 0, "Minimal required resulting packet size") - chunkSize = flag.Uint64("chunk", 0, "Split file on specified size chunks, in KiB") + chunkSize = flag.Uint64("chunked", 0, "Split file on specified size chunks, in KiB") quiet = flag.Bool("quiet", false, "Print only errors") debug = flag.Bool("debug", false, "Print debug messages") version = flag.Bool("version", false, "Print version information") -- 2.44.0