mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-21 10:52:22 +00:00
virsh: add 'exit' as an alias for 'quit'
Call me lazy: some shells use exit (e.g. sh), others use quit (e.g. ftp), but I never remember which. So it's faster to write a patch to make virsh take both than it is to take a 50-50 guess, and get it wrong in half of my attempts. * tools/virsh.c (commands): Add 'exit'. * tools/virsh.pod: Document it.
This commit is contained in:
parent
3cda0eb487
commit
890af4ca8f
@ -8254,6 +8254,7 @@ static const vshCmdDef commands[] = {
|
||||
{"pwd", cmdPwd, NULL, info_pwd},
|
||||
#endif
|
||||
{"quit", cmdQuit, NULL, info_quit},
|
||||
{"exit", cmdQuit, NULL, info_quit},
|
||||
{"reboot", cmdReboot, opts_reboot, info_reboot},
|
||||
{"restore", cmdRestore, opts_restore, info_restore},
|
||||
{"resume", cmdResume, opts_resume, info_resume},
|
||||
|
@ -65,7 +65,7 @@ The following commands are generic i.e. not specific to a domain.
|
||||
This prints a small synopsis about all commands available for B<virsh>
|
||||
B<help> I<command> will print out a detailed help message on that command.
|
||||
|
||||
=item B<quit>
|
||||
=item B<quit>, B<exit>
|
||||
|
||||
quit this interactive terminal
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user