68 parser = argparse.ArgumentParser(description='A script that aids in '
69 'the creation of an Mac application')
70
71 subparsers = parser.add_subparsers()
72
73
74
75 plist_parser = subparsers.add_parser('plist', help='Process the Info.plist')
76 plist_parser.set_defaults(func=ProcessInfoPlist)
77
78 plist_parser.add_argument('-i', dest='input', help='The input plist path')
79 plist_parser.add_argument('-o', dest='output', help='The output plist dir')
80
81
82
83 plist_parser = subparsers.add_parser('nib', help='Process a NIB file')
84 plist_parser.set_defaults(func=ProcessNIB)
85
86 plist_parser.add_argument('-i', dest='input', help='The input nib path')
87 plist_parser.add_argument('-o', dest='output', help='The output nib dir')
88 plist_parser.add_argument('-m', dest='module', help='The module name')
89
90
91
92 dir_struct_parser = subparsers.add_parser(
93 'structure', help='Creates the directory of an Mac application')
94
95 dir_struct_parser.set_defaults(func=GenerateProjectStructure)
96
97 dir_struct_parser.add_argument('-d', dest='dir', help='Out directory')
98 dir_struct_parser.add_argument('-n', dest='name', help='App name')
99
100
101
102 args = parser.parse_args()
103
104 return args.func(args)
105
106