~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/python3.patch/utils/skel/lib/skel_xml.py

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
                parents = [parent_parser],
14
14
                formatter_class=argparse.RawDescriptionHelpFormatter,
15
15
                prog='skel',
16
 
                add_help=False,
 
16
                #add_help=False,
17
17
                description='''\
18
18
        skel xml
19
19
            create an xml file to define the I/O pattern for the target skeletal application''')
20
20
 
 
21
    parser.add_argument ('project', metavar='project', help='Name of the skel project')
21
22
    parser.add_argument ('-y', '--yaml-file', dest='yamlfile', help='yaml file to use for I/O pattern')
22
23
    parser.add_argument ('-f', '--force', dest='force', action='store_true', help='overwrite existing XML file')
23
24
    parser.set_defaults(force=False)
51
52
 
52
53
 
53
54
 
54
 
def create_skel_xml (project, parent_parser):
 
55
def create_skel_xml (parent_parser):
55
56
 
56
57
    args = pparse_command_line (parent_parser)
57
58
    if args.yamlfile is not None:
58
 
        create_from_yaml (project, args)
 
59
        create_from_yaml (args.project, args)
59
60
    else:
60
 
        create_from_xml (project, args)
 
61
        create_from_xml (args.project, args)
61
62
 
62
63
 
63
64
def create_from_yaml (project,args):