]> git.proxmox.com Git - pve-zsync.git/commitdiff
man/pod: move full synopsis below description
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 May 2021 12:35:33 +0000 (14:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 May 2021 12:35:36 +0000 (14:35 +0200)
so that people get to read a short description before viewing the
rather large full command and option synopsis.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pve-zsync

index d26b7001ca1b0e1968e5d3d9548723637dcb5443..b6669d1df42bdc5f5e97c1d1248ca5d2cbff2ae5 100755 (executable)
--- a/pve-zsync
+++ b/pve-zsync
@@ -1362,6 +1362,7 @@ sub check_target {
 sub print_pod {
 
     my $synopsis = join("\n", sort values %$cmd_help);
+    my $commands = join(", ", sort keys %$cmd_help);
 
     print <<EOF;
 =head1 NAME
@@ -1372,7 +1373,7 @@ pve-zsync - PVE ZFS Replication Manager
 
 pve-zsync <COMMAND> [ARGS] [OPTIONS]
 
-$synopsis
+Where <COMMAND> can be one of: $commands
 
 =head1 DESCRIPTION
 
@@ -1385,6 +1386,10 @@ To config cron see man crontab.
 
 This Tool can get remote pool on other PVE or send Pool to others ZFS machines
 
+=head1 COMMANDS AND OPTIONS
+
+$synopsis
+
 =head1 EXAMPLES
 
 add sync job from local VM to remote ZFS Server