Add support for command line switches:
 - --list-apps.
 - --apps.