GSoC/GCI Archive
Google Code-in 2010 DragonFly BSD

code: Add usage() to vkernels

completed by: gh0st

mentors: Samuel J. Greear, Alex Hornung

Most userspace applications have a (traditionally) usage() routine which prints helpful information when passed -h or -? or any unknown command line argument or incorrect syntax.

Add a usage() to the vkernel's argument parsing, based on other examples found in userspace applications. It should inform the user of all available option flags and a description of each flag.

vkernel main() can be found in: sys/platform/vkernel/platform/init.c

The format and rules for creating a usage() function can be found in the style(9) manpage.