Massive rewrite of admin.py: use argparse instead of optparse

Gives significantly better command line handling:
 * git-like subcommands instead of --arguments for commands
 * better enforcement of arguments for subcommands, and better help

Change-Id: I131e132da6a12744f5e89e21f01163449b90dd70
1 file changed