Change remaining command line arguments --initiator_name to --initiator-name
Change the remaining instances to match the manpages and help texts
This commit is contained in:
@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
|
|||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
{"dst", required_argument, NULL, 'd'},
|
{"dst", required_argument, NULL, 'd'},
|
||||||
{"src", required_argument, NULL, 's'},
|
{"src", required_argument, NULL, 's'},
|
||||||
{"initiator_name", required_argument, NULL, 'i'},
|
{"initiator-name", required_argument, NULL, 'i'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
int option_index;
|
int option_index;
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ int main(int argc, char *argv[])
|
|||||||
{"help", no_argument, NULL, 'h'},
|
{"help", no_argument, NULL, 'h'},
|
||||||
{"usage", no_argument, NULL, 'u'},
|
{"usage", no_argument, NULL, 'u'},
|
||||||
{"debug", no_argument, NULL, 'd'},
|
{"debug", no_argument, NULL, 'd'},
|
||||||
{"initiator_name", required_argument, NULL, 'i'},
|
{"initiator-name", required_argument, NULL, 'i'},
|
||||||
{"evpd", required_argument, NULL, 'e'},
|
{"evpd", required_argument, NULL, 'e'},
|
||||||
{"pagecode", required_argument, NULL, 'c'},
|
{"pagecode", required_argument, NULL, 'c'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ int main(int argc, char *argv[])
|
|||||||
{"debug", no_argument, NULL, 'd'},
|
{"debug", no_argument, NULL, 'd'},
|
||||||
{"show-luns", no_argument, NULL, 's'},
|
{"show-luns", no_argument, NULL, 's'},
|
||||||
{"url", no_argument, NULL, 'U'},
|
{"url", no_argument, NULL, 'U'},
|
||||||
{"initiator_name", required_argument, NULL, 'i'},
|
{"initiator-name", required_argument, NULL, 'i'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
int option_index;
|
int option_index;
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
|
|||||||
{"usage", no_argument, NULL, 'u'},
|
{"usage", no_argument, NULL, 'u'},
|
||||||
{"debug", no_argument, NULL, 'd'},
|
{"debug", no_argument, NULL, 'd'},
|
||||||
{"size", no_argument, NULL, 's'},
|
{"size", no_argument, NULL, 's'},
|
||||||
{"initiator_name", required_argument, NULL, 'i'},
|
{"initiator-name", required_argument, NULL, 'i'},
|
||||||
{"evpd", required_argument, NULL, 'e'},
|
{"evpd", required_argument, NULL, 'e'},
|
||||||
{"pagecode", required_argument, NULL, 'c'},
|
{"pagecode", required_argument, NULL, 'c'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
|
|||||||
{"help", no_argument, NULL, 'h'},
|
{"help", no_argument, NULL, 'h'},
|
||||||
{"usage", no_argument, NULL, 'u'},
|
{"usage", no_argument, NULL, 'u'},
|
||||||
{"debug", no_argument, NULL, 'd'},
|
{"debug", no_argument, NULL, 'd'},
|
||||||
{"initiator_name", required_argument, NULL, 'i'},
|
{"initiator-name", required_argument, NULL, 'i'},
|
||||||
{"swp", required_argument, NULL, 's'},
|
{"swp", required_argument, NULL, 's'},
|
||||||
{0, 0, 0, 0}
|
{0, 0, 0, 0}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user