CVSROOT: /cvs Module name: src Changes by: r...@cvs.openbsd.org 2015/11/27 02:11:39
Modified files: usr.sbin/vmmctl: Makefile main.c parse.y parser.h vmm.conf.5 vmmctl.8 vmmctl.c Removed files: usr.sbin/vmmctl: parser.c Log message: Change the command line syntax to a "command + getopts" style, eg. vmmctl start "myvm" -m 512M -i 1 -d disk.img -k /bsd Networking people like me are used to the human-readable CLI-style syntax that we have in some of our OpenBSD *ctl tools, including bgpctl, other routing daemons, or relayctl. But this didn't work for vmmctl, so change it to something a bit less human-readable but more BSD- and POSIX-ish. After all, the command line is only intended for simple configuration, more details will go into the configuration file, so we can avoid getopt flag conflicts or scary things like the getsubopt(3) style. OK krw@ jasper@, with input from kettenis@ jmc@ deraadt@ mlarkin@ etc.