Skip to content
Snippets Groups Projects
Commit 23d36a2e authored by Steven Murray's avatar Steven Murray
Browse files

Replaced 0 with no_argument with respect to getopt_long()

parent e78d1985
Branches
Tags
No related merge requests found
......@@ -32,8 +32,8 @@ CreateSchemaCmdLineArgs::CreateSchemaCmdLineArgs(const int argc, char *const *co
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
......@@ -32,8 +32,8 @@ DeleteAllCatalogueDataCmdLineArgs::DeleteAllCatalogueDataCmdLineArgs(const int a
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
......@@ -32,8 +32,8 @@ DropSchemaCmdLineArgs::DropSchemaCmdLineArgs(const int argc, char *const *const
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
......@@ -32,8 +32,8 @@ LockSchemaCmdLineArgs::LockSchemaCmdLineArgs(const int argc, char *const *const
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
......@@ -34,8 +34,8 @@ PollDatabaseCmdLineArgs::PollDatabaseCmdLineArgs(const int argc, char *const *co
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
......@@ -32,8 +32,8 @@ SchemaStatusCmdLineArgs::SchemaStatusCmdLineArgs(const int argc, char *const *co
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
......@@ -33,8 +33,8 @@ UnlockSchemaCmdLineArgs::UnlockSchemaCmdLineArgs(const int argc, char *const *co
help(false) {
static struct option longopts[] = {
{"help", 0, NULL, 'h'},
{NULL , 0, NULL, 0}
{"help", no_argument, NULL, 'h'},
{NULL , 0, NULL, 0}
};
// Prevent getopt() from printing an error message if it does not recognize
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment