summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPedro J. Ruiz Lopez <holzplatten@es.gnu.org>2009-08-11 23:41:14 +0200
committerPedro J. Ruiz Lopez <holzplatten@es.gnu.org>2009-08-13 21:18:26 +0200
commita96f39e313c7e14c6c4ae122f326664c024ed925 (patch)
tree0396d749c4bf8ee454b832a8ea61bd0d2daa5812 /doc
parent4ba387c572fe2ac1c6987fa76ff82ce7d7b5f7b0 (diff)
downloadidutils-a96f39e313c7e14c6c4ae122f326664c024ed925.tar.gz
idutils-a96f39e313c7e14c6c4ae122f326664c024ed925.tar.bz2
idutils-a96f39e313c7e14c6c4ae122f326664c024ed925.zip
mkid: avoid segfault with "-l OPT"
* libidu/scanners.c: languages_0[] is not const anymore, since this would make impossible to set lang->lg_argv * libidu/scanners.c: language_save_arg now manages language options with zero or one argument. * doc/idutils.texi: update to reflect the behavior of mkid "-l" option. * testsuite/mkid-langopt: new test program.
Diffstat (limited to 'doc')
-rw-r--r--doc/idutils.texi20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/idutils.texi b/doc/idutils.texi
index ab9040e..7421ac0 100644
--- a/doc/idutils.texi
+++ b/doc/idutils.texi
@@ -407,13 +407,21 @@ be specified on the command line for a single run.
@cindex language-specific option
Language-specific scanners also accept options. @var{Language} denotes
-the desired scanner, and @var{option} are the command-line options that
-should be passed through to it. For example, to pass the @var{-x
+the desired scanner, and @var{option} is the command-line option that
+should be passed through to it. For example, to pass the @var{-x foo
--coke-bottle} options to the scanner for the language @var{swizzle},
-pass this: @var{-l swizzle:"-x --coke-bottle"}, or this:
-@var{-lang-option=swizzle:"-x --coke-bottle"}, or this: @var{-l
-swizzle-x -l swizzle:--coke-bottle}. Use the @samp{--help} option to
-see the command-line option summary for
+use one of the next two forms, or a mixture of both:
+
+@example
+$ mkid -l swizzle:"-x foo" -l swizzle:--coke-bottle
+$ mkid --lang-option=swizzle:"-x foo" --lang-option=swizzle:--coke-bottle
+@end example
+
+Note the use of quotes when passing an option with arguments. Quoting is
+optional for options without arguments.
+
+Use the @samp{--help} option to see the command-line option summary for each
+language.
@end table