@staticmethod
def setup_subparser(parser, cmd=None):
    """
        Set up a subparser for 'install'
        """
    parser.add_argument('packages', help='List of packages to install',
        action='append', default=[], nargs='*')
    parser.add_argument('--print-tree', help='Print dependency tree',
        action='store_true')
    parser.add_argument('-d', '--deps', help='Also rebuild dependencies',
        action='store_true')
    parser.add_argument('-c', '--clean', help=
        "Run a `make clean' (or equivalent) command before rebuilding from source."
        , action='store_true')
    parser.add_argument('-k', '--keep-build', help=
        'Keep build directory before rebuilding from source (default is to nuke it).'
        , action='store_true')
