mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tools: Reformat --help output of virsh and virt-admin
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>
This commit is contained in:
parent
ad8c4d9d6d
commit
1201299699
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user