-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.m
More file actions
29 lines (26 loc) · 678 Bytes
/
main.m
File metadata and controls
29 lines (26 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// main.m
// ocgit
//
// Created by Etienne on 16/09/13.
// Copyright (c) 2013 tiennou. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GTCLITool.h"
int main(int argc, const char * argv[])
{
BOOL success = NO;
@autoreleasepool {
NSMutableArray *arguments = [NSMutableArray arrayWithCapacity:argc];
for (int argi = 1; argi < argc; argi++) {
[arguments addObject:@(argv[argi])];
}
NSError *error = nil;
success = [GTCLITool executeToolWithArguments:arguments error:&error];
if (success != YES) {
NSLog(@"%@", error);
return 1;
}
}
return 0;
}