Skip to content

Commit

Permalink
cmd-run: Tweak help output
Browse files Browse the repository at this point in the history
Tweak the synopsis to clarify that one has to use `-d` to use a specific
image, and mention that the default behaviour is to use the latest
build.
  • Loading branch information
jlebon authored and cgwalters committed Apr 4, 2019
1 parent b7479dc commit 6d1db85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd-run
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ VM_PERSIST=0
VM_NCPUS="${VM_NCPUS:-$(nproc)}"
VM_SRV_MNT=
SSH_PORT=${SSH_PORT:-}
USAGE="Usage: $0 /path/to/disk.qcow2 [--] [qemu options...]
USAGE="Usage: $0 [-d /path/to/disk.qcow2] [--] [qemu options...]
Options:
-d DISK Root disk drive (won't be changed by default)
--persist Don't create a temporary snapshot
Expand All @@ -29,7 +29,8 @@ Options:
This script is a wrapper around qemu for starting CoreOS virtual machines,
it will auto-log you into the console, and by default for read-only disk
images makes a transient snapshot.
images makes a transient snapshot. Unless a disk image is passed with -d, it
will launch the latest build.
Any arguments after -- will be passed through to qemu. See the qemu(1) man page
for more details.
Expand Down

0 comments on commit 6d1db85

Please sign in to comment.