]> Cypherpunks repositories - nncp.git/commitdiff
Rename nncp-xfer -force to -mkdir for clarity
authorSergey Matveev <stargrave@stargrave.org>
Sat, 29 Apr 2017 13:33:36 +0000 (16:33 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 29 Apr 2017 13:52:33 +0000 (16:52 +0300)
doc/cmds.texi
doc/news.texi
doc/usecases.texi
src/cypherpunks.ru/nncp/cmd/nncp-xfer/main.go

index 2426e33414a61e9bc85f4f6a0f7d7c99ef71950a..edf21d013a84e7d28e1a5882f2c292b5ee93f679 100644 (file)
@@ -347,7 +347,7 @@ running this command as a daemon.
 @section nncp-xfer
 
 @verbatim
-% nncp-xfer [options] [-force] [-keep] [-rx|-tx] DIR
+% nncp-xfer [options] [-mkdir] [-keep] [-rx|-tx] DIR
 @end verbatim
 
 Search for directory in @file{DIR} containing inbound packets for us and
@@ -355,7 +355,7 @@ move them to local @ref{Spool, spool} directory. Also search for known
 neighbours directories and move locally queued outbound packets to them.
 This command is used for offline packets transmission.
 
-If @option{-force} option is specified, then outbound neighbour(s)
+If @option{-mkdir} option is specified, then outbound neighbour(s)
 directories will be created. This is useful for the first time usage,
 when storage device does not have any directories tree.
 
index 5f3bd27e731c99a86885d5c4e58d6f4b37cf634b..0ca08d2d5dc3a5e444600c47670c222910742c08 100644 (file)
@@ -11,6 +11,8 @@ encrypted temporary file for that.
 entry. Useful for transferring big files over small storage devices.
 @item @option{freqminsize} configuration file option, analogue to
 @option{-minsize} one.
+@item @command{nncp-xfer}'s @option{-force} option is renamed to
+@option{-mkdir} for clarity.
 @item Cryptographic libraries (dependecies) are updated.
 @end itemize
 
index 175c8e85ec8b1668bea4b2e9b9cbc2db1c50f2c6..b72681c68911ccea2abad79003756994a1125ec3 100644 (file)
@@ -115,10 +115,9 @@ device, mount it and run @ref{nncp-xfer}:
 % nncp-xfer -node bob /media/usbstick
 @end verbatim
 
-to copy all outbound packets related to @emph{bob}'s node. Use
-@option{-force} option to forcefully create related directory on USB
-storage if they are missing (for example when running for the first
-time).
+to copy all outbound packets related to @emph{bob}. Use @option{-mkdir}
+option to create related directory on USB storage if they are missing
+(for example when running for the first time).
 
 If you use single storage device to transfer data both to @emph{bob} and
 @emph{alice}, then just omit @option{-node} option to copy all existing
index 7aa57b3a45eea9d7b7a1483a03b374c9fadf3f73..bcd76257bf0581a0fd2abf026893014411861104 100644 (file)
@@ -48,7 +48,7 @@ func main() {
                niceRaw  = flag.Int("nice", 255, "Minimal required niceness")
                rxOnly   = flag.Bool("rx", false, "Only receive packets")
                txOnly   = flag.Bool("tx", false, "Only transfer packets")
-               force    = flag.Bool("force", false, "Force outbound directories creation")
+               mkdir    = flag.Bool("mkdir", false, "Create necessary outbound directories")
                keep     = flag.Bool("keep", false, "Do not delete transferred packets")
                quiet    = flag.Bool("quiet", false, "Print only errors")
                debug    = flag.Bool("debug", false, "Print debug messages")
@@ -241,7 +241,7 @@ Tx:
                if err != nil {
                        if os.IsNotExist(err) {
                                ctx.LogD("nncp-xfer", sds, "does not exist")
-                               if !*force {
+                               if !*mkdir {
                                        ctx.UnlockDir(dirLock)
                                        continue
                                }