def METHOD_NAME(parser, plugins):
    """
    Set the command line parameters.
    The plugins argument is intended to be the same that will eventually be
    passed to the constructor. We pass it in here separately because we don't
    want to have to instantiate all the widgets just to see if the command
    line is valid.
    Input:
        parser[argparse.ArgumentParser]: parser instance
        plugins[list]: List of plugin classes that might add command line arguments
    """
    for plugin_class in plugins:
        plugin_class.METHOD_NAME(parser)
    parser.add_argument("arguments",
            type=str,
            metavar="N",
            nargs="*",
            help="Input file and executable can be set without the command line switches")
    parser.add_argument('--clear-recently-used',
            dest="clear_recent",
            action='store_true',
            help='Clear recently used items')
    parser.add_argument('--clear-settings',
            dest="clear_settings",
            action='store_true',
            help='Clears all peacock settings.')
    parser.add_argument('-w', '--working-dir',
            dest="working_dir",
            help='Set the initial working directory.')
    parser.add_argument('-d', '--debug', '--dbg',
            dest="debug",
            action='store_true',
            help='Run Peacock in debug mode. Setting the PEACOCK_DEBUG environment variable will automatically set this.')
    group = parser.add_argument_group("Window size", "Startup window size")
    group.add_argument('-size',
            dest='size',
            nargs=2,
            help='Size of the window')
    group.add_argument('-max',
            dest='max',
            action='store_true',
            help='Open in maximized view')
    group.add_argument('-full',
            dest='full',
            action='store_true',
            help='Open in fullscreen view')