Displaying 20 results from an estimated 102 matches for "help_option".
2016 Jul 22
1
[PATCH] static const char *str -> static const char str
...-boot.c | 2 +-
utils/qemu-speed-test/qemu-speed-test.c | 2 +-
27 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/align/scan.c b/align/scan.c
index e7327ea..9575eda 100644
--- a/align/scan.c
+++ b/align/scan.c
@@ -107,7 +107,7 @@ main (int argc, char *argv[])
enum { HELP_OPTION = CHAR_MAX + 1 };
- static const char *options = "a:c:d:P:qvVx";
+ static const char options[] = "a:c:d:P:qvVx";
static const struct option long_options[] = {
{ "add", 1, 0, 'a' },
{ "connect", 1, 0, 'c' },
diff --git a/builde...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...ek <lersek at redhat.com>
---
copy/main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/copy/main.c b/copy/main.c
index f9a714c4f677..bb67e97ff97a 100644
--- a/copy/main.c
+++ b/copy/main.c
@@ -107,8 +107,8 @@ main (int argc, char *argv[])
{
enum {
HELP_OPTION = CHAR_MAX + 1,
- LONG_OPTIONS,
- SHORT_OPTIONS,
+ LONG_OPTIONS_OPTION,
+ SHORT_OPTIONS_OPTION,
ALLOCATED_OPTION,
DESTINATION_IS_ZERO_OPTION,
FLUSH_OPTION,
@@ -120,7 +120,7 @@ main (int argc, char *argv[])
const char *short_options = "C:pR:S:T:vV";
const s...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/copy/main.c b/copy/main.c
> index f9a714c4f677..bb67e97ff97a 100644
> --- a/copy/main.c
> +++ b/copy/main.c
> @@ -107,8 +107,8 @@ main (int argc, char *argv[])
> {
> enum {
> HELP_OPTION = CHAR_MAX + 1,
> - LONG_OPTIONS,
> - SHORT_OPTIONS,
> + LONG_OPTIONS_OPTION,
> + SHORT_OPTIONS_OPTION,
> ALLOCATED_OPTION,
> DESTINATION_IS_ZERO_OPTION,
> FLUSH_OPTION,
> @@ -120,7 +120,7 @@ main (int argc, char *argv[])
> const char *short_...
2016 Jul 20
0
[PATCH] podcheck: Check tool --help output.
...eck each option exists in the manual.
@@ -184,9 +195,43 @@ foreach (sort keys %pod_options) {
}
}
+# Check the tool's --help output mentions all the options. (For OCaml
+# tools this is a waste of time since the --help output is generated,
+# but for C tools it is a genuine test).
+my $help_options_checked = 0;
+
+my %help_options = ();
+$help_options{$_} = 1 foreach ( $help_content =~ /(?<!\w)(-[-\w]+)/g );
+
+# There are some help options which we automatically ignore.
+delete $help_options{"--color"};
+delete $help_options{"--colour"};
+# "[--options]" is...
2023 Apr 14
1
[libnbd PATCH 2/4] copy: rename <purpose>_OPTION to OPT_<purpose>
...redhat.com>
---
copy/main.c | 62 ++++++++++----------
1 file changed, 31 insertions(+), 31 deletions(-)
diff --git a/copy/main.c b/copy/main.c
index bb67e97ff97a..8055b3a656ba 100644
--- a/copy/main.c
+++ b/copy/main.c
@@ -106,34 +106,34 @@ int
main (int argc, char *argv[])
{
enum {
- HELP_OPTION = CHAR_MAX + 1,
- LONG_OPTIONS_OPTION,
- SHORT_OPTIONS_OPTION,
- ALLOCATED_OPTION,
- DESTINATION_IS_ZERO_OPTION,
- FLUSH_OPTION,
- NO_EXTENTS_OPTION,
- QUEUE_SIZE_OPTION,
- REQUEST_SIZE_OPTION,
- SYNCHRONOUS_OPTION,
+ OPT_HELP = CHAR_MAX + 1,
+ OPT_LONG_OPTIONS,
+...
2023 Apr 14
4
[libnbd PATCH 0/4] copy: wrap source code at 80 characters
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
I figured I'd work on the libnbd line wrapping in shorter waves than how
long the nbdkit patch series was.
Laszlo
Laszlo Ersek (4):
copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
copy: rename <purpose>_OPTION to OPT_<purpose>
copy: fix layout of "long_options" table
copy: rewrap
2020 Feb 12
0
[PATCH v2 1/1] tools: add '--blocksize' option for C-based tools
...No output, just exit code\n"
@@ -119,6 +121,7 @@ main (int argc, char *argv[])
{ "connect", 1, 0, 'c' },
{ "domain", 1, 0, 'd' },
{ "format", 2, 0, 0 },
+ { "blocksize", 2, 0, 0 },
{ "help", 0, 0, HELP_OPTION },
{ "long-options", 0, 0, 0 },
{ "quiet", 0, 0, 'q' },
@@ -131,6 +134,8 @@ main (int argc, char *argv[])
struct drv *drvs = NULL;
const char *format = NULL;
bool format_consumed = true;
+ int blocksize = 0;
+ bool blocksize_consumed = true;
int c...
2020 Feb 12
3
[PATCH v2 0/1] tools: add '--blocksize' option for C-based tools
From: Nikolay Ivanets <stenavin@gmail.com>
This patch depends on changes in 'common' sub-module posted here:
https://www.redhat.com/archives/libguestfs/2020-February/msg00099.html
v2:
Almost the same as v1 except '--blocksize' option description is moved
into a common submodule (similar to key-option.pod).
v1 was here:
2020 Feb 11
0
[PATCH 1/1] tools: add '--blocksize' option for C-based tools
...No output, just exit code\n"
@@ -119,6 +121,7 @@ main (int argc, char *argv[])
{ "connect", 1, 0, 'c' },
{ "domain", 1, 0, 'd' },
{ "format", 2, 0, 0 },
+ { "blocksize", 2, 0, 0 },
{ "help", 0, 0, HELP_OPTION },
{ "long-options", 0, 0, 0 },
{ "quiet", 0, 0, 'q' },
@@ -131,6 +134,8 @@ main (int argc, char *argv[])
struct drv *drvs = NULL;
const char *format = NULL;
bool format_consumed = true;
+ int blocksize = 0;
+ bool blocksize_consumed = true;
int c...
2020 Feb 11
2
[PATCH 0/1] tools: add '--blocksize' option for C-based tools
From: Nikolay Ivanets <stenavin@gmail.com>
This patch depends on changes in 'common' sub-module posted here:
https://www.redhat.com/archives/libguestfs/2020-February/msg00096.html
Nikolay Ivanets (1):
tools: add '--blocksize' option for C-based tools
align/scan.c | 8 ++++++++
align/virt-alignment-scan.pod | 12 ++++++++++++
cat/cat.c
2016 Jul 18
1
[PATCH] fish, fuse: Remove bogus '?' from short options.
...ish/fish.c | 2 +-
fuse/guestmount.c | 2 +-
fuse/guestunmount.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fish/fish.c b/fish/fish.c
index 49e1aaa..e639d3d 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -182,7 +182,7 @@ main (int argc, char *argv[])
enum { HELP_OPTION = CHAR_MAX + 1 };
- static const char *options = "a:c:d:Df:h::im:nN:rv?Vwx";
+ static const char *options = "a:c:d:Df:h::im:nN:rvVwx";
static const struct option long_options[] = {
{ "add", 1, 0, 'a' },
{ "cmd-help", 2, 0, 'h'...
2018 Jun 28
1
[nbdkit PATCH] main: More idiomatic use of getopt_long
...ght (C) 2013-2017 Red Hat Inc.
+ * Copyright (C) 2013-2018 Red Hat Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -109,44 +109,55 @@ struct backend *backend;
static char *random_fifo_dir = NULL;
static char *random_fifo = NULL;
-enum { HELP_OPTION = CHAR_MAX + 1 };
+enum {
+ HELP_OPTION = CHAR_MAX + 1,
+ DUMP_CONFIG_OPTION,
+ DUMP_PLUGIN_OPTION,
+ EXIT_WITH_PARENT_OPTION,
+ FILTER_OPTION,
+ RUN_OPTION,
+ SELINUX_LABEL_OPTION,
+ TLS_OPTION,
+ TLS_CERTIFICATES_OPTION,
+ TLS_VERIFY_PEER_OPTION,
+};
static const char *short_options =...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...ed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/copy/main.c b/copy/main.c
>> index f9a714c4f677..bb67e97ff97a 100644
>> --- a/copy/main.c
>> +++ b/copy/main.c
>> @@ -107,8 +107,8 @@ main (int argc, char *argv[])
>> {
>> enum {
>> HELP_OPTION = CHAR_MAX + 1,
>> - LONG_OPTIONS,
>> - SHORT_OPTIONS,
>> + LONG_OPTIONS_OPTION,
>> + SHORT_OPTIONS_OPTION,
>> ALLOCATED_OPTION,
>> DESTINATION_IS_ZERO_OPTION,
>> FLUSH_OPTION,
>> @@ -120,7 +120,7 @@ main (int argc, char *ar...
2017 Jan 26
2
[PATCH v2 0/2] Fix srandom issues.
A better way to solve this I think.
Rich.
2016 Aug 25
1
Re: [PATCH 5/5] bash completion: Add missing bash completion scripts (RHBZ#1367738).
...I guess ...
> diff --git a/fuse/guestunmount.c b/fuse/guestunmount.c
> index efd342f..fe86706 100644
> --- a/fuse/guestunmount.c
> +++ b/fuse/guestunmount.c
> @@ -83,8 +83,10 @@ main (int argc, char *argv[])
> { "fd", 1, 0, 0 },
> { "help", 0, 0, HELP_OPTION },
> { "quiet", 0, 0, 'q' },
> + { "long-options", 0, 0, 0 },
> { "no-retry", 0, 0, 0 },
> { "retry", 1, 0, 0 },
> + { "short-options", 0, 0, 0 },
> { "verbose", 0, 0, 'v' },
>...
2012 Aug 06
1
[PATCH V2] virt-diff: add new virt-diff tool
...{
+ if (!drv) return;
+
+ free (drv->device);
+ free (drv);
+}
+
+int
+main (int argc, char *argv[])
+{
+ /* set global program name that is not polluted with libtool artifacts. */
+ set_program_name (argv[0]);
+ bindtextdomain (PACKAGE, LOCALEBASEDIR);
+ textdomain (PACKAGE);
+
+ enum { HELP_OPTION = CHAR_MAX + 1 };
+
+ static const char *options = "s:d:";
+ static const struct option long_options[] = {
+ {"seed", 1, 0, 's'},
+ {"domain", 1, 0, 'd'},
+ {"help", 0, 0, HELP_OPTION},
+ {0, 0, 0, 0}
+ };
+
+ struct drv *sdrv...
2009 Aug 24
5
[0/5] guestfish: detect stdout-write failure
Nearly any program that writes to standard output can
benefit from this sort of fix.
Without it, running e.g., ./guestfish --version > /dev/full
would exit successfully, even though it got ENOSPC
when writing to the full device. That means regular
output redirected to a file on a full partition may also
fail to be written, and the error ignored.
Before:
$ guestfish --version >
2018 Sep 19
0
[PATCH 2/2] Introduce a --key option in tools that accept keys
..." -m|--mount dev[:mnt[:opts[:fstype]]]\n"
" Mount dev on mnt (if omitted, /)\n"
@@ -101,6 +102,7 @@ main (int argc, char *argv[])
{ "echo-keys", 0, 0, 0 },
{ "format", 2, 0, 0 },
{ "help", 0, 0, HELP_OPTION },
+ { "key", 1, 0, 0 },
{ "keys-from-stdin", 0, 0, 0 },
{ "long-options", 0, 0, 0 },
{ "mount", 1, 0, 'm' },
@@ -119,6 +121,7 @@ main (int argc, char *argv[])
int c;
int r;
int option_index;
+ struct key_store *ks = NULL;...
2014 Jun 23
2
Re: [PATCH] edit: add -m option
On Mon, Jun 23, 2014 at 12:30:07PM +0100, Richard W.M. Jones wrote:
>
> Same comment about do_edit_simple as I previously posted about
> do_cat_simple.
I mean edit_files_simple ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows
2014 Jun 23
2
[PATCH] edit: add -m option
...ted, /)\n"
" -v|--verbose Verbose messages\n"
" -V|--version Display version and exit\n"
" -x Trace libguestfs API calls\n"
@@ -106,7 +109,7 @@ main (int argc, char *argv[])
enum { HELP_OPTION = CHAR_MAX + 1 };
- static const char *options = "a:b:c:d:e:vVx";
+ static const char *options = "a:b:c:d:e:m:vVx";
static const struct option long_options[] = {
{ "add", 1, 0, 'a' },
{ "backup", 1, 0, 'b' },
@@ -119,12 +122,1...