0008-Make-it-clear-in-documentation-that-f-needs-a-previo.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From: =?utf-8?q?Martin_Stegh=C3=B6fer?= <martin@steghoefer.eu>
  2. Date: Wed, 29 Oct 2014 20:06:34 +0100
  3. Subject: Make it clear in documentation that -f needs a previous -d.
  4. Bug-Debian: https://bugs.debian.org/359948
  5. Forwarded: https://trac.xiph.org/ticket/1679
  6. The -f option to specify an output file name works only if a file device has previously been specified using the -d option. Some parts of the documentation don't make it very explicit that -f needs -d and that the -d option has to precede the -f option.
  7. ---
  8. ogg123/cmdline_options.c | 2 +-
  9. ogg123/ogg123.1 | 3 ++-
  10. 2 files changed, 3 insertions(+), 2 deletions(-)
  11. diff --git a/ogg123/cmdline_options.c b/ogg123/cmdline_options.c
  12. index d663cc6..619b4f5 100644
  13. --- a/ogg123/cmdline_options.c
  14. +++ b/ogg123/cmdline_options.c
  15. @@ -140,7 +140,7 @@ int parse_cmdline_options (int argc, char **argv,
  16. exit(1);
  17. }
  18. } else {
  19. - status_error(_("=== Cannot specify output file without specifying a driver.\n"));
  20. + status_error(_("=== Cannot specify output file without previously specifying a driver.\n"));
  21. exit (1);
  22. }
  23. break;
  24. diff --git a/ogg123/ogg123.1 b/ogg123/ogg123.1
  25. index 160a876..7b434c6 100644
  26. --- a/ogg123/ogg123.1
  27. +++ b/ogg123/ogg123.1
  28. @@ -69,7 +69,8 @@ Specify output device. See
  29. .B DEVICES
  30. section for a list of devices. Any number of devices may be specified.
  31. .IP "-f filename, --file filename"
  32. -Specify output file for file devices. The filename "-" writes to standard
  33. +Specify output file for a file device previously specified with
  34. +--device. The filename "-" writes to standard
  35. out. If the file already exists,
  36. .B ogg123
  37. will overwrite it.