Commit f6452853 authored by Steven Murray's avatar Steven Murray
Browse files

Changed order of cta-database-poll command-line args

parent cc1c750c
......@@ -90,12 +90,12 @@ PollDatabaseCmdLineArgs::PollDatabaseCmdLineArgs(const int argc, char *const *co
throw ex;
}
numberOfSecondsToKeepPolling = utils::toUint64(argv[optind]);
dbConfigPath = argv[optind];
// Move on to the next command-line argument
optind++;
dbConfigPath = argv[optind];
numberOfSecondsToKeepPolling = utils::toUint64(argv[optind]);
}
//------------------------------------------------------------------------------
......@@ -104,14 +104,14 @@ PollDatabaseCmdLineArgs::PollDatabaseCmdLineArgs(const int argc, char *const *co
void PollDatabaseCmdLineArgs::printUsage(std::ostream &os) {
os <<
"Usage:" << std::endl <<
" cta-database-poll numberOfSecondsToKeepPolling databaseConnectionFile [options]" << std::endl <<
" cta-database-poll databaseConnectionFile numberOfSecondsToKeepPolling [options]" << std::endl <<
"Where:" << std::endl <<
" numberOfSecondsToKeepPolling" << std::endl <<
" The total number of seconds cta-database-poll should run before" << std::endl <<
" exiting." << std::endl <<
" databaseConnectionFile" << std::endl <<
" The path to the file containing the connection details of the CTA" << std::endl <<
" catalogue database." << std::endl <<
" numberOfSecondsToKeepPolling" << std::endl <<
" The total number of seconds cta-database-poll should run before" << std::endl <<
" exiting." << std::endl <<
"Options:" << std::endl <<
" -h,--help" << std::endl <<
" Prints this usage message" << std::endl;
......
......@@ -17,18 +17,18 @@
.SH NAME
cta-database-poll \- Polls the specified database every second
.SH SYNOPSIS
.BI "cta-database-poll numberOfSecondsToKeepPolling databaseConnectionFile [options]"
.BI "cta-database-poll databaseConnectionFile numberOfSecondsToKeepPolling [options]"
.SH DESCRIPTION
\fBcta-database-poll\fP is a command-line tool that polls the specified database
every second for the specified total number of seconds.
.SH ARGUMENTS
.TP
\fBnumberOfSecondsToKeepPolling
The total number of seconds cta-database-poll should run before exiting.
.TP
\fBdatabaseConnectionFile
The path to the configuration file containing the connection details of the
CTA catalogue database.
.TP
\fBnumberOfSecondsToKeepPolling
The total number of seconds cta-database-poll should run before exiting.
.SH OPTIONS
.TP
\fB\-h, \-\-help
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment