Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/605'
Browse files Browse the repository at this point in the history
* origin/pr/605:
  Implementing -h & --help for qvm-console-dispvm
  • Loading branch information
marmarek committed Jul 5, 2024
2 parents 212ff69 + 9fdb9ef commit 7b248a7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions qvm-tools/qvm-console-dispvm
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
set -eu
print_usage() {
cat >&2 << USAGE
Usage: $0 [--autostart] [--] vmname
Usage: $0 [--help] [--autostart] [--] vmname
Connects to VM console throught DispVM using the qubes.ShowInTerminal RPC service.
With --autostart, start the VM first.
--help, -h show this help message and exit
--autostart start the VM first.
USAGE
}

if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
print_usage
exit 0
fi

do_start=false
if [[ $# -ge 2 ]] && [[ "$1" = '--autostart' ]]; then
do_start=:
Expand Down

0 comments on commit 7b248a7

Please sign in to comment.