Displaying 20 results from an estimated 46 matches for "short_option".
Did you mean:
short_options
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
Two of the enum constants that denote command line options are
inconsistently named with the rest: all identifiers should be
<purpose>_OPTION, but LONG_OPTIONS and SHORT_OPTIONS (which are supposed
to list the long and short options) don't conform. Rename them.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
copy/main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
On Fri, Apr 14, 2023 at 09:59:53AM +0200, Laszlo Ersek wrote:
> Two of the enum constants that denote command line options are
> inconsistently named with the rest: all identifiers should be
> <purpose>_OPTION, but LONG_OPTIONS and SHORT_OPTIONS (which are supposed
> to list the long and short options) don't conform. Rename them.
>
> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> ---
> copy/main.c | 12 ++++++------
> 1 file changed, 6 i...
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
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...23 10:11, Richard W.M. Jones wrote:
> On Fri, Apr 14, 2023 at 09:59:53AM +0200, Laszlo Ersek wrote:
>> Two of the enum constants that denote command line options are
>> inconsistently named with the rest: all identifiers should be
>> <purpose>_OPTION, but LONG_OPTIONS and SHORT_OPTIONS (which are supposed
>> to list the long and short options) don't conform. Rename them.
>>
>> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
>> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
>> ---
>> copy/main.c | 12 ++++++------
&g...
2023 Apr 14
1
[libnbd PATCH 2/4] copy: rename <purpose>_OPTION to OPT_<purpose>
...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,
+ OPT_SHORT_OPTIONS,
+ OPT_ALLOCATED,
+ OPT_DESTINATIO...
2023 Apr 14
3
[libnbd PATCH v2 0/3] copy: wrap source code at 80 characters
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
v1: https://listman.redhat.com/archives/libguestfs/2023-April/031258.html
Please refer to the Notes section in each patch for the v2 updates.
BR,
Laszlo
Laszlo Ersek (3):
copy: rename DESTINATION_IS_ZERO_OPTION to TARGET_IS_ZERO_OPTION
copy: fix layout of "long_options" table
copy: rewrap error message about
2010 Jul 30
1
Problem with short options (4.02).
Hello,
There seems to be a problem with short options.
F.i. "syslinux -s a:" results in:
Unknown option: -s
Usage: etc.
With the long option "syslinux --stupid a:" however everything is ok.
--
Regards,
Arwin.
2022 Nov 04
3
[libnbd PATCH v2 0/3] Improve nbdsh -u handling
v1 was here:
https://listman.redhat.com/archives/libguestfs/2022-October/030216.html
Since then, I've incorporated changes based on Rich's feedback:
swap order of patches 2 and 3
less change in patch 1 (including no unsafe eval(%s) for --uri)
in patch 2, include -c in list of snippets to store, and use dict of
lambdas to map back to the desired action
Eric Blake (3):
nbdsh:
2017 Jun 10
0
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
On 09/10/2016 21:48, Michael Felt wrote:
> I finally decided it was really time to stop being lazy and really
> move away from gmail. After I have a server in my basement using
> power, etc.
>
> So I turned on the imap provided - and did not quite cry - it will
> have to do for now, but imap2 is wanting.
Next chapter in packaging.
a) I have 'patched' several files to
2009 Sep 05
5
[tftpd PATCH 0/5] pidfile option and syslog fix
Hi,
This is my current patch queue. The patches are independent, AFAIK,
so feel free to cherry-pick or reject them independently.
The bottom one was needed for a successful build here; the top one
contains all the modifications you requested on IRC, and more.
Meanwhile I hit one of the four stray TABs in tftpd.c, and decided to
get rid of them.
Comments welcome.
---
Ferenc Wagner (5):
2010 Jun 07
0
[PATCH] extlinux: Add the --menu-save option to set the MENU SAVE value from the running system using extlinux
...@ -55,10 +56,11 @@ const struct option long_options[] = {
{"once", 1, NULL, 'o'},
{"clear-once", 0, NULL, 'O'},
{"reset-adv", 0, NULL, OPT_RESET_ADV},
+ {"menu-save", 1, NULL, 'M'},
{0, 0, 0, 0}
};
-const char short_options[] = "id:f:UuzS:H:rvho:O";
+const char short_options[] = "id:f:UuzS:H:rvho:OM:";
void __attribute__ ((noreturn)) usage(int rv, int mode)
{
@@ -83,6 +85,7 @@ void __attribute__ ((noreturn)) usage(int rv, int mode)
" --once=... -o Execute a command once upon boo...
2009 Jul 19
3
[PATCH] tftpd.c: write a pid file in standalone mode
...option long_options[] = {
{ "retransmit", 1, NULL, 'T' },
{ "port-range", 1, NULL, 'R' },
{ "map-file", 1, NULL, 'm' },
+ { "pidfile", 1, NULL, 'P' },
{ NULL, 0, NULL, 0 }
};
-static const char short_options[] = "46cspvVlLa:B:u:U:r:t:T:R:m:";
+static const char short_options[] = "46cspvVlLa:B:u:U:r:t:T:R:m:P:";
int main(int argc, char **argv)
{
@@ -352,6 +360,7 @@ int main(int argc, char **argv)
#ifdef WITH_REGEX
char *rewrite_file = NULL;
#endif
+ const char *pidfile...
2020 Sep 26
1
[PATCH nbdinfo proposal] info: Add a --map option for displaying allocation metadata
This is a rough-and-ready implementation of nbdinfo --map option, to
display the allocation and other metadata of NBD exports. I only
tested it lightly against nbdkit. It needs at least some tests.
Command like these should work:
nbdinfo --map nbd://localhost
nbdinfo --map=qemu:dirty-bitmap nbd://localhost
Rich.
2017 Nov 17
0
[nbdkit PATCH 6/6] Add --threads option for supporting true parallel requests
...*/
int tls; /* --tls : 0=off 1=on 2=require */
const char *tls_certificates_dir; /* --tls-certificates */
int tls_verify_peer; /* --tls-verify-peer */
@@ -99,7 +100,7 @@ static char *random_fifo = NULL;
enum { HELP_OPTION = CHAR_MAX + 1 };
-static const char *short_options = "e:fg:i:nop:P:rsu:U:vV";
+static const char *short_options = "e:fg:i:nop:P:rst:u:U:vV";
static const struct option long_options[] = {
{ "help", 0, NULL, HELP_OPTION },
{ "dump-config",0, NULL, 0 },
@@ -126,6 +127,7 @@ static const struct optio...
2018 Nov 14
3
[PATCH nbdkit v2 0/2] build: Replace ./nbdkit with a C program.
v1 was here:
https://www.redhat.com/archives/libguestfs/2018-November/msg00147.html
v2:
- Use stdbool for booleans.
- Use __attribute__((format(printf))).
- Don't abort on invalid options, exit with failure instead.
- Preserve long/short option choices in the output.
- Add '=' in long option output, ie. always use --longopt=arg.
- Add "--" parameter
2002 Apr 18
5
mixed case file systems.
I am having trouble with rsync when I am trying to synchronize a Windows NT
volume mounted with smb_fs (FreeBSD) and a unix volume which is also exported
with Samba.
There are instances where the DOS short name on the NT volume ends up as upper
case and then doesn't match filenames which are used in the unix volumes which
have been exported by Samba. I don't know if this is a Samba
2017 Apr 14
1
error message for flac --sign
Hi,
The --sign option in flac can be signed or unsigned,
but the error message mentions "uint32_t".
- Michael
diff --git a/src/flac/main.c b/src/flac/main.c
index 4e7361b3..c6d9b1e3 100644
--- a/src/flac/main.c
+++ b/src/flac/main.c
@@ -817,7 +817,7 @@ int parse_option(int short_option, const char *long_option, const char *option_a
else if(0 == strncmp(option_argument, "unsigned", strlen(option_argument)))
option_values.format_is_unsigned_samples = true;
else
- return usage_error("ERROR: argument to --sign must be \"signed\" or \"uint...
2009 Jul 19
0
[PATCH] Untabify tftpd.c
...+----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index 1f5d9d6..ff39c85 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -364,7 +364,7 @@ int main(int argc, char **argv)
srand(time(NULL) ^ getpid());
while ((c = getopt_long(argc, argv, short_options, long_options, NULL))
- != -1)
+ != -1)
switch (c) {
case '4':
ai_fam = AF_INET;
@@ -467,9 +467,9 @@ int main(int argc, char **argv)
case 'v':
verbosity++;
break;
- case OPT_VERBOSITY:
- verbosity =...
2020 Sep 26
0
[PATCH nbdinfo v2] info: Add a --map option for displaying allocation metadata.
....com\n"
" nbdinfo --json nbd://example.com\n"
" nbdinfo --list nbd://example.com\n"
"\n"
@@ -85,6 +91,7 @@ main (int argc, char *argv[])
CONTENT_OPTION,
NO_CONTENT_OPTION,
JSON_OPTION,
+ MAP_OPTION,
SIZE_OPTION,
};
const char *short_options = "LV";
@@ -95,6 +102,7 @@ main (int argc, char *argv[])
{ "json", no_argument, NULL, JSON_OPTION },
{ "list", no_argument, NULL, 'L' },
{ "long-options", no_argument, NULL, LONG_OPTI...
2018 Nov 13
3
[PATCH 0/2] build: Replace ./nbdkit with a C program.
This patch series solves the FreeBSD shebang problem in a completely
different way, and a few other things besides. I propose that we
replace ./nbdkit with a C program. The C program is a straightforward
translation of the shell script.
Some advantages of this approach are:
- We can parse options in exactly the same way as the real program.
- Use the more accurate ‘is_short_name’ test for