def open_args(subparsers):
    """
    The `mp open` command will open a resource with the system application, such as Excel or OpenOffice

    """
    parser = subparsers.add_parser(
        'open',
        help='open a CSV resoruce with a system application',
        description=open_args.__doc__,
        formatter_class=argparse.RawDescriptionHelpFormatter,
    )

    parser.set_defaults(run_command=open_cmd)

    parser.add_argument('metatabfile', nargs='?',
                        help="Path or URL to a metatab file. If not provided, defaults to 'metadata.csv' ")

    return parser
def open_args ( subparsers ) : parser = subparsers . add_parser ( 'open' , help = 'open a CSV resoruce with a system application' , description = open_args . __doc__ , formatter_class = argparse . RawDescriptionHelpFormatter , ) parser . set_defaults ( run_command = open_cmd ) parser . add_argument ( 'metatabfile' , nargs = '?' , help = "Path or URL to a metatab file. If not provided, defaults to 'metadata.csv' " ) return parser
The `mp open` command will open a resource with the system application, such as Excel or OpenOffice