Commit 378d8303 authored by Steven Murray's avatar Steven Murray
Browse files

Replaced 0 with no_argument with respect to getopt_long()

parent 48d1daee
......@@ -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
......
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