Removed version option because it is not part of fbopt 0.4.1.
This commit is contained in:
parent
99f87de871
commit
4537f2e226
29
README.md
29
README.md
|
@ -81,7 +81,34 @@ You need to install the following packages and the ones listed for
|
|||
|
||||
## Help
|
||||
|
||||
FIXME
|
||||
```
|
||||
Usage: qvm [OPTION]
|
||||
Trivial management of 64 bit virtual machines with qemu.
|
||||
|
||||
Only a single option is accepted.
|
||||
By default, the backup vhd is run.
|
||||
Mandatory arguments to long options are mandatory for short options too.
|
||||
Options:
|
||||
-a, --attach connect via SSH
|
||||
-b, --backup backup the vhd
|
||||
-c, --create create a new vhd
|
||||
-d, --delete delete the vhd backup
|
||||
-h, --help print this help
|
||||
-i, --install install the image on a vhd
|
||||
-m, --mkdir-shared create a shared directory
|
||||
-n, --nox run vm without graphical output
|
||||
-o, --orig run from the original vhd
|
||||
-r, --remote connect to a remote instance of QVM
|
||||
-v, --vnc use VNC
|
||||
-x, --run run the vm
|
||||
|
||||
Exit status:
|
||||
0 if OK,
|
||||
1 if an error occurred.
|
||||
|
||||
CC0 License
|
||||
Written in 2018 by Franco Masotti/frnmst <franco.masotti@live.com>
|
||||
```
|
||||
|
||||
## Setup information and usage
|
||||
|
||||
|
|
14
fbopt
14
fbopt
|
@ -37,7 +37,6 @@ Options:
|
|||
-o, --orig run from the original vhd
|
||||
-r, --remote connect to a remote instance of QVM
|
||||
-v, --vnc use VNC
|
||||
-V, --version print the software version
|
||||
-x, --run run the vm
|
||||
|
||||
Exit status:
|
||||
|
@ -49,16 +48,6 @@ Written in 2018 by Franco Masotti/frnmst <franco.masotti@live.com>
|
|||
EOF
|
||||
}
|
||||
|
||||
# TODO better FIXME.
|
||||
show_version()
|
||||
{
|
||||
local program_name="${0}"
|
||||
local program_version="$(cat version)"
|
||||
|
||||
wd="$(pwd)"
|
||||
printf "%s\n" "${program_name} version ${program_version}"
|
||||
}
|
||||
|
||||
# A function that prints the variable name and value of all
|
||||
# the flags enabled by the user. This is useful to check that
|
||||
# all the flags are correct, as kind of a dry run.
|
||||
|
@ -147,8 +136,6 @@ remote,vnc,mkdir-shared,nox,print-flags,version'
|
|||
|
||||
-v | --vnc ) vnc='vnc' ;;
|
||||
|
||||
-V | --version ) version='true' ;;
|
||||
|
||||
-x | --run ) run='true' ;;
|
||||
|
||||
esac
|
||||
|
@ -183,7 +170,6 @@ remote,vnc,mkdir-shared,nox,print-flags,version'
|
|||
'vnc' \
|
||||
&& return 0
|
||||
[ "${help}" = 'true' ] && show_help && return 0
|
||||
[ "${version}" = 'true' ] && show_version && return 0
|
||||
# Override values of optional parameters.
|
||||
# NOOP.
|
||||
|
||||
|
|
Reference in New Issue