Reducing the verbosity in the args definitions

Instead of calling the argparse API multiple times, the arguments and
tasks are now defined as dicts.