search for: required_argument

Displaying 20 results from an estimated 52 matches for "required_argument".

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
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
2018 Jun 28
1
[nbdkit PATCH] main: More idiomatic use of getopt_long
...ELP_OPTION }, + { "dump-config", no_argument, NULL, DUMP_CONFIG_OPTION }, + { "dump-plugin", no_argument, NULL, DUMP_PLUGIN_OPTION }, + { "exit-with-parent", no_argument, NULL, EXIT_WITH_PARENT_OPTION }, + { "export", required_argument, NULL, 'e' }, + { "export-name", required_argument, NULL, 'e' }, + { "exportname", required_argument, NULL, 'e' }, + { "filter", required_argument, NULL, FILTER_OPTION }, + { "foreground", no_argument,...
2023 Apr 14
1
[libnbd PATCH 2/4] copy: rename <purpose>_OPTION to OPT_<purpose>
...ALLOCATED_OPTION }, + { "help", no_argument, NULL, OPT_HELP }, + { "long-options", no_argument, NULL, OPT_LONG_OPTIONS }, + { "allocated", no_argument, NULL, OPT_ALLOCATED }, { "connections", required_argument, NULL, 'C' }, - { "destination-is-zero",no_argument, NULL, DESTINATION_IS_ZERO_OPTION }, - { "flush", no_argument, NULL, FLUSH_OPTION }, - { "no-extents", no_argument, NULL, NO_EXTENTS_OPTION }, + { "desti...
2018 Nov 14
5
[PATCH nbdkit v3 0/4] build: Replace ./nbdkit with a C program.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-November/msg00147.html v2 was here: https://www.redhat.com/archives/libguestfs/2018-November/msg00152.html v3: - Use optarg != NULL as a sentinel for has_arg. - Moved some variable decls into the inner loop. - Make nbdkit wrapper depend on config.status, so if srcdir or builddir changes then we rebuild the wrapper. It
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
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
2004 Nov 20
0
ffmpeg2theora start and end time support - patch
...more informations\n" @@ -704,7 +727,7 @@ av_register_all (); int c,long_option_index; - const char *optstring = "o:f:x:y:v:V:a:A:d:H:c:p:N:D:h::"; + const char *optstring = "o:f:x:y:v:V:a:s:e:A:d:H:c:p:N:D:h::"; struct option options [] = { {"output",required_argument,NULL,'o'}, {"format",required_argument,NULL,'f'}, @@ -726,6 +749,8 @@ {"cropright",required_argument,&cropright_flag,1}, {"cropleft",required_argument,&cropleft_flag,1}, {"inputfps",required_argument,&inputfps_flag,...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...OPTION }, - { "long-options", no_argument, NULL, LONG_OPTIONS }, + { "long-options", no_argument, NULL, LONG_OPTIONS_OPTION }, { "allocated", no_argument, NULL, ALLOCATED_OPTION }, { "connections", required_argument, NULL, 'C' }, { "destination-is-zero",no_argument, NULL, DESTINATION_IS_ZERO_OPTION }, @@ -130,7 +130,7 @@ main (int argc, char *argv[]) { "queue-size", required_argument, NULL, QUEUE_SIZE_OPTION }, { "request-size", required_...
2016 Apr 26
3
[opus-tools] [PATCH] Add channel-mapping argument to force channel mapping
...t; --downmix-mono Downmix to mono\n"); printf(" --downmix-stereo Downmix to stereo (if >2 channels)\n"); printf(" --max-delay n Maximum container delay in milliseconds\n"); @@ -260,6 +262,7 @@ int main(int argc, char **argv) {"complexity", required_argument, NULL, 0}, {"framesize", required_argument, NULL, 0}, {"expect-loss", required_argument, NULL, 0}, + {"channel-mapping", required_argument, NULL, 0}, {"downmix-mono",no_argument,NULL, 0}, {"downmix-stereo",no_argument,NULL, 0}...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...{ "long-options", no_argument, NULL, LONG_OPTIONS }, > + { "long-options", no_argument, NULL, LONG_OPTIONS_OPTION }, > { "allocated", no_argument, NULL, ALLOCATED_OPTION }, > { "connections", required_argument, NULL, 'C' }, > { "destination-is-zero",no_argument, NULL, DESTINATION_IS_ZERO_OPTION }, > @@ -130,7 +130,7 @@ main (int argc, char *argv[]) > { "queue-size", required_argument, NULL, QUEUE_SIZE_OPTION }, > { "request-size&qu...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...t metadata_flag=0; @@ -736,7 +824,7 @@ av_register_all (); int c,long_option_index; - const char *optstring = "o:f:x:y:v:V:a:s:e:A:d:H:c:p:N:D:h::"; + const char *optstring = "o:f:x:y:v:V:a:s:e:A:S:F:d:H:c:p:N:D:h::"; struct option options [] = { {"output",required_argument,NULL,'o'}, {"format",required_argument,NULL,'f'}, @@ -746,6 +834,9 @@ {"videobitrate",required_argument,NULL,'V'}, {"audioquality",required_argument,NULL,'a'}, {"audiobitrate",required_argument,NULL,'A'}...
2003 Mar 09
0
ogg123 --end 1:59 patch.ogg
...-------- diff -Naur vorbis-tools-1.0.orig/ogg123/cmdline_options.c vorbis-tools-1.0/ogg123/cmdline_options.c --- vorbis-tools-1.0.orig/ogg123/cmdline_options.c Thu Jul 11 04:44:39 2002 +++ vorbis-tools-1.0/ogg123/cmdline_options.c Sun Mar 9 16:28:14 2003 @@ -37,6 +37,7 @@ {"device", required_argument, 0, 'd'}, {"file", required_argument, 0, 'f'}, {"skip", required_argument, 0, 'k'}, + {"end", required_argument, 0, 'K'}, {"delay", required_argument, 0, 'l'}, {"device-option", required...
2004 Nov 20
0
ffmpeg2theora start and end time support
...tatic int nosound_flag=0; static int aspect_flag=0; AVInputFormat *input_fmt=NULL; ff2theora convert = ff2theora_init (); av_register_all (); int c,long_option_index; const char *optstring = "o:f:x:y:v:a:s:e:d:H:c:p:N:D:h::"; struct option options [] = { {"output",required_argument,NULL,'o'}, {"format",required_argument,NULL,'f'}, {"width",required_argument,NULL,'x'}, {"height",required_argument,NULL,'y'}, {"videoquality",required_argument,NULL,'v'}, {"audioquality",requir...
2023 Apr 14
1
[libnbd PATCH 1/4] copy: rename (LONG|SHORT)_OPTIONS to (LONG|SHORT)_OPTIONS_OPTION
...-options", no_argument, NULL, LONG_OPTIONS }, >> + { "long-options", no_argument, NULL, LONG_OPTIONS_OPTION }, >> { "allocated", no_argument, NULL, ALLOCATED_OPTION }, >> { "connections", required_argument, NULL, 'C' }, >> { "destination-is-zero",no_argument, NULL, DESTINATION_IS_ZERO_OPTION }, >> @@ -130,7 +130,7 @@ main (int argc, char *argv[]) >> { "queue-size", required_argument, NULL, QUEUE_SIZE_OPTION }, >> { &quot...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...557,7 +557,7 @@ if (this->audio_resample_ctx) audio_resample_close(this->audio_resample_ctx); - theoraframes_close (); + theoraframes_close (&info); } else{ fprintf (stderr, "No video or audio stream found\n"); @@ -711,7 +711,15 @@ {"cropright",required_argument,&cropright_flag,1}, {"cropleft",required_argument,&cropleft_flag,1}, {"inputfps",required_argument,&inputfps_flag,1}, - + + {"artist",required_argument,NULL,10}, + {"title",required_argument,NULL,11}, + {"date",required_...
2016 Apr 26
0
Antw: [opus-tools] [PATCH] Add channel-mapping argument to force channel mapping
...Downmix to mono\n"); > printf(" --downmix-stereo Downmix to stereo (if >2 channels)\n"); > printf(" --max-delay n Maximum container delay in milliseconds\n"); > @@ -260,6 +262,7 @@ int main(int argc, char **argv) > {"complexity", required_argument, NULL, 0}, > {"framesize", required_argument, NULL, 0}, > {"expect-loss", required_argument, NULL, 0}, > + {"channel-mapping", required_argument, NULL, 0}, > {"downmix-mono",no_argument,NULL, 0}, > {"downmix-stereo&q...
2014 Jun 23
4
[PATCH] utils/isohybrid.c: 007 (2nd try) Enable promised options -u, -m, -b
...0 @@ -262,7 +262,7 @@ check_option(int argc, char *argv[]) char *err = NULL; int n = 0, ind = 0; - const char optstr[] = ":h:s:e:o:t:i:fcp?vV"; + const char optstr[] = ":h:s:e:o:t:i:b:umfcp?vV"; struct option lopt[] = \ { { "entry", required_argument, NULL, 'e' },
2019 Aug 01
0
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
...uot;SOCK_STREAM multiple connections", + .run_client = test_stream_multiconn_client, + .run_server = test_stream_multiconn_server, + }, + {}, +}; + +static const char optstring[] = ""; +static const struct option longopts[] = { + { + .name = "control-host", + .has_arg = required_argument, + .val = 'H', + }, + { + .name = "control-port", + .has_arg = required_argument, + .val = 'P', + }, + { + .name = "mode", + .has_arg = required_argument, + .val = 'm', + }, + { + .name = "peer-cid", + .has_arg = required_argument, + ....
2019 Oct 09
2
[PATCH v2 07/11] VSOCK: add AF_VSOCK test cases
....run_server = test_stream_multiconn_server, > + }, > + {}, > +}; > + > +static const char optstring[] = ""; > +static const struct option longopts[] = { > + { > + .name = "control-host", > + .has_arg = required_argument, > + .val = 'H', > + }, > + { > + .name = "control-port", > + .has_arg = required_argument, > + .val = 'P', > + }, > + { > + .name = "mode", &...