]> Cypherpunks.ru repositories - nncp.git/commitdiff
Better to call option as -chunked
authorSergey Matveev <stargrave@stargrave.org>
Sat, 29 Apr 2017 07:30:36 +0000 (10:30 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 29 Apr 2017 07:30:36 +0000 (10:30 +0300)
doc/chunked.texi
doc/cmds.texi
src/cypherpunks.ru/nncp/cmd/nncp-file/main.go

index 27ad5099661f8dd760b90ef5ff07ff14a5b142d4..01103e26ad80c3ebe63c44f473397e04b120c55c 100644 (file)
@@ -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},
index 9f47b8d5d1fdce14b0bed5453b9d642feca1fee3..5d7d6335923c886863d58fba4af6db7475cb1baf 100644 (file)
@@ -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.
index 842f709ed0e3eb68401e18d1af4e755e42274934..0b61aba057356d3cfbe1de1bfd7d3b9dedf989d1 100644 (file)
@@ -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")