@classmethod
def addArgumentsTo(cls, parser):
    """
        Prepares an ArgumentParser object to allow a user to pass Intent
        arguments through a command-line interface.
        """
    parser.add_argument('--action', help=
        'specify the action to include in the Intent')
    parser.add_argument('--category', nargs='+', help=
        'specify the category to include in the Intent')
    parser.add_argument('--component', help=
        'specify the component name to include in the Intent', nargs=2,
        metavar=('PACKAGE', 'COMPONENT'))
    parser.add_argument('--data-uri', help=
        'specify a Uri to attach as data in the Intent')
    parser.add_argument('--extra', action='append', default=[], dest=
        'extras', nargs=3, help=
        "add an field to the Intent's extras bundle", metavar=('TYPE',
        'KEY', 'VALUE'))
    parser.add_argument('--flags', nargs='+', default=[], help=
        'specify one-or-more flags to include in the Intent')
    parser.add_argument('--mimetype', help=
        'specify the MIME type to send in the Intent')
