16int main(
int argc,
char* argv[] ) {
18 std::cout << std::endl <<
"*** Recalculating truncation ***" << std::endl << std::endl;
20 TString inputfile(
"");
21 TString outputfile(
"");
27 for (
int i = 1; i < argc; i++){
29 std::string
arg(argv[i]);
32 if ((i+1 == argc) || (argv[i+1][0] ==
'-'))
arg =
"-h";
33 else inputfile = argv[++i]; }
35 if ((i+1 == argc) || (argv[i+1][0] ==
'-'))
arg =
"-h";
36 else outputfile = argv[++i]; }
38 std::cout << std::endl <<
" Usage for: " << argv[0] << std::endl << std::endl;
39 std::cout <<
"\t -f <file>\t Input file" << std::endl;
40 std::cout <<
"\t -o <file>\t Output file" << std::endl;
45 if( inputfile ==
"" || outputfile ==
"" ){
46 std::cout << std::endl <<
" Usage for: " << argv[0] << std::endl << std::endl;
47 std::cout <<
"\t -c <file>\t Configuration file" << std::endl;
48 std::cout <<
"\t -f <file>\t Input file" << std::endl;
49 std::cout <<
"\t -o <file>\t Output file" << std::endl;