pmem / run_qemu

A script to create bootable OS images, and run qemu with a locally built kernel.
Creative Commons Zero v1.0 Universal
59 stars 23 forks source link

run_qemu.sh: Prompt invalid parameter error #45

Closed irides closed 10 months ago

irides commented 10 months ago

Argbash cannot report if an invalid parameter is set, it will think this parameter as working_dir, and then show meaningless message:

$ run_qemu.sh --clx /usr/local/bin/run_qemu.sh: line 105: pushd: --clx: invalid number pushd: usage: pushd [-n] [+N | -N | dir] couldn't cd to --clx

Add check and print useful message:

$ run_qemu.sh --clx Invalid option '--clx' Try 'run_qemu.sh --help' for more information.