Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (30 sloc) 853 Bytes
#import <Foundation/Foundation.h>
#import "CommandLineParser.h"
#import "DoxygenConverter.h"
int main(int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
@try
{
// Parse command line arguments. If command line is not ok, print usage and exit.
CommandLineParser* commandLineParser = [CommandLineParser sharedInstance];
[commandLineParser parseCommandLineArguments:argv ofCount:argc];
// Create and run the converter.
DoxygenConverter* converter = [[DoxygenConverter alloc] init];
[converter convert];
[converter release];
// Release the command line parser.
[commandLineParser release];
}
@catch (NSException* e)
{
NSLog(@"Exiting due to exception: %@", e);
[[CommandLineParser sharedInstance] printUsage];
return 1;
}
@finally
{
[pool drain];
}
return 0;
}
Jump to Line
Something went wrong with that request. Please try again.