File: wscleanmain.cpp

package info (click to toggle)
wsclean 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,196 kB
  • sloc: cpp: 34,504; ansic: 234; python: 174; makefile: 10
file content (24 lines) | stat: -rw-r--r-- 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "wsclean/commandline.h"
#include "wsclean/logger.h"
#include "wsclean/wsclean.h"

#include <exception>
#include <iostream>

int main(int argc, char *argv[])
{
	try {
		WSClean wsclean;
		if(CommandLine::Parse(wsclean, argc, argv))
			CommandLine::Run(wsclean);
		return 0;
	} catch(std::exception& e)
	{
		Logger::Error
			<< "+ + + + + + + + + + + + + + + + + + +\n"
			<< "+ An exception occured:\n"
			<< "+ >>> " << e.what() << "\n"
			<< "+ + + + + + + + + + + + + + + + + + +\n";
		return -1;
	}
}