]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: Reformat --help output of virsh and virt-admin
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 28 Aug 2023 11:07:34 +0000 (13:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Sep 2023 09:59:38 +0000 (11:59 +0200)
The --help output of virsh and virt-admin shows supported options
and commands and as such contains new lines. Both these strings
are marked for translation btw. But the way they are formatted
now ('\n' being at the start of new line instead at the end of
the previous) makes it hard to create a syntax-check rule for
'translation message on one line' (next commit).

Reformat both strings a bit (no user visible change though).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tools/virsh.c
tools/virt-admin.c

index d9922a35fccc1f2d13f5e0dd4e7e0a75e34552e2..7b71131db33f0317238bce7da9b689c5f4651bf1 100644 (file)
@@ -436,8 +436,10 @@ virshUsage(void)
     const vshCmdGrp *grp;
     const vshCmdDef *cmd;
 
-    fprintf(stdout, _("\n%1$s [options]... [<command_string>]"
-                      "\n%2$s [options]... <command> [args...]\n\n"
+    fprintf(stdout, _("\n"
+                      "%1$s [options]... [<command_string>]\n"
+                      "%2$s [options]... <command> [args...]\n"
+                      "\n"
                       "  options:\n"
                       "    -c | --connect=URI      hypervisor connection URI\n"
                       "    -d | --debug=NUM        debug level [0-4]\n"
index 15a639f1ea6dff6f597c92ad3630c095eecb314e..1e22a3c8a951b27a86de18103fd74a73ec35b7a8 100644 (file)
@@ -1242,8 +1242,10 @@ vshAdmUsage(void)
     const vshCmdGrp *grp;
     const vshCmdDef *cmd;
 
-    fprintf(stdout, _("\n%1$s [options]... [<command_string>]"
-                      "\n%2$s [options]... <command> [args...]\n\n"
+    fprintf(stdout, _("\n"
+                      "%1$s [options]... [<command_string>]\n"
+                      "%2$s [options]... <command> [args...]\n"
+                      "\n"
                       "  options:\n"
                       "    -c | --connect=URI      daemon admin connection URI\n"
                       "    -d | --debug=NUM        debug level [0-4]\n"