Definition at line 1170 of file fitsdump.cc.
References Configuration::DoParse(), FitsDumper::Exec(), Configuration::Get(), Configuration::Has(), PrintHelp(), PrintUsage(), Configuration::SetPrintUsage(), and SetupConfiguration().
1176 if (!conf.DoParse(argc, argv,
PrintHelp))
1179 if (!conf.Has(
"fitsfile"))
1181 cerr <<
"Filename required." << endl;
1185 FitsDumper loader(conf.Get<
string>(
"fitsfile"), conf.Get<
string>(
"tablename"));
1188 cerr <<
"ERROR - Opening " << conf.Get<
string>(
"fitsfile");
1189 cerr <<
" failed: " << strerror(errno) << endl;
1193 return loader.Exec(conf);
Commandline parsing, resource file parsing and database access.
void SetupConfiguration(Configuration &conf)
Dumps contents of fits tables to stdout or a file.