thelema/odb — pull request #86 by HappyCrow (2012-08-17 04:49:07+00:00)
Title: Added support for short options, for the busy and keyboard lazy sysadmin

There is some code duplication involved but the indentation
and neighbouring code will hopefully make it clear
to all programmers.

Here is what we get with this new version:

me@supercomputer: ./odb.ml -help
ocaml odb.ml [--sudo] []
--auto-reinstall Auto-reinstall dependent packages on update
-ar <=> --auto-reinstall
--clean Cleanup downloaded tarballs and install folders
-c <=> --clean
--configure-flags Flags to pass to explicitly installed packages' configure step
-cf <=> --configure-flags
--configure-flags-all Flags to pass to all packages' configure step
-cfa <=> --configure-flags-all
--debug Debug package dependencies
-d <=> --debug
--force Force (re)installation of packages named
-f <=> --force
--force-all Force (re)installation of dependencies
-fa <=> --force-all
--get Only download and extract packages; don't install
-g <=> --get
--have-perms Don't use --prefix even without sudo
-hp <=> --have-perms
--ignore Don't fail on unknown package name
-i <=> --ignore
--info Only print the metadata for the packages listed; don't install
-l <=> --info
--no-base Don't auto-detect GODI/BASE
-nb <=> --no-base
--package Install all packages from package files
-p <=> --package
--stable Use stable repo
-s <=> --stable
--sudo Switch to root for installs
-su <=> --sudo
--testing Use testing repo [default]
-t <=> --testing
--unstable Use unstable repo
-u <=> --unstable
-help Display this list of options
--help Display this list of options