5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-03-10 16:58:41 +03:00

usage: describe flag parameters correctly

It's not possible to provide a false value. From the documentation for
GetOptionsFromArray:
    The argument specification is optional. If omitted, the option is considered
    boolean, a value of 1 will be assigned when the option is used on the
    command line.

Make it clear that specifying the flag alone already enables it.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-05-04 10:09:57 +02:00 committed by Thomas Lamprecht
parent 5f1187c6c0
commit 53e7ea54e0

View File

@ -1114,9 +1114,9 @@ $PROGNAME create -dest <string> -source <string> [OPTIONS]
name of the sync job, if not set it is default
-skip boolean
-skip
if this flag is set it will skip the first sync
If specified, skip the first sync.
-source string
@ -1126,9 +1126,9 @@ $PROGNAME create -dest <string> -source <string> [OPTIONS]
name of the user on the source target, root by default
-properties boolean
-properties
Include the dataset's properties in the stream.
If specified, include the dataset's properties in the stream.
-dest-config-path string
@ -1168,13 +1168,13 @@ $PROGNAME sync -dest <string> -source <string> [OPTIONS]\n
name of the user on the source target, root by default
-verbose boolean
-verbose
print out the sync progress.
If specified, print out the sync progress.
-properties boolean
-properties
Include the dataset's properties in the stream.
If specified, include the dataset's properties in the stream.
-dest-config-path string
@ -1199,7 +1199,7 @@ $PROGNAME help <cmd> [OPTIONS]
Command name
-verbose boolean
-verbose
Verbose output format.
},