search for: 5026aff

Displaying 2 results from an estimated 2 matches for "5026aff".

Did you mean: 026baff
2016 Jul 18
0
[PATCH] format: Remove unimplemented virt-format -c, -d and -q options.
These options just give errors because they appear in the short options list but not in the case statement. --- format/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format/format.c b/format/format.c index 5026aff..2dbaa4d 100644 --- a/format/format.c +++ b/format/format.c @@ -104,7 +104,7 @@ main (int argc, char *argv[]) enum { HELP_OPTION = CHAR_MAX + 1 }; - static const char *options = "a:c:d:qvVx"; + static const char *options = "a:vVx"; static const struct option long_opt...
2016 May 05
1
[PATCH] tools: improve reporting for option errors (RHBZ#1316041)
...NULL) { + fprintf (stderr, _("%s: error: you must specify at least one -a or -d option.\n"), + guestfs_int_program_name); usage (EXIT_FAILURE); + } /* Add drives. */ add_drives (drvs, 'a'); diff --git a/format/format.c b/format/format.c index 4aa31de..5026aff 100644 --- a/format/format.c +++ b/format/format.c @@ -219,14 +219,22 @@ main (int argc, char *argv[]) assert (live == 0); /* Must be no extra arguments on the command line. */ - if (optind != argc) + if (optind != argc) { + fprintf (stderr, _("%s: error: extra argument '%s...