[tools] Load the leap second kernel later

... to show usage and error messages
pull/3/head
Hleb Valoshka 2019-04-07 19:46:54 +03:00
parent db90fbf3a0
commit a80389dbcf
1 changed files with 3 additions and 3 deletions

View File

@ -530,9 +530,6 @@ bool readConfig(istream& in, Configuration& config)
int main(int argc, char* argv[])
{
// Load the leap second kernel
furnsh_c("naif0012.tls");
if (argc < 2)
{
cerr << "Usage: spice2xyzv <config filename> [output filename]\n";
@ -586,6 +583,9 @@ int main(int argc, char* argv[])
return 1;
}
// Load the leap second kernel
furnsh_c("naif0012.tls");
writeCommentHeader(config, cout);
convertSpkToXyzv(config, cout);