--quiet flag does not work (in fact does nothing)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unrtf (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Also reported at https:/
I can also confirm that the "--quiet" flag has no effect on version 0.21.5. Searching for "quiet" in the code base I can see that it's fetched and set as an option (main.c), but it's never used in the code base to suppress comments or meta.
Further, it doesn't appear that the "--quiet" flag is shown in the usage help:
[me] unrtf-0.21.5 $/usr/local/
0.21.5
search path is: /usr/local/
[me] unrtf-0.21.5 $/usr/local/
Usage: unrtf [--version] [--verbose] [--help] [--nopict|-n] [--noremap] [--html] [--text] [--vt] [--latex] [--rtf] [-P config_search_path] [-t <file_with_tags>)] <filename>
And here is the output of using the quiet flag which proves that it does nothing for a sample RTF file (attached to this report):
[me] unrtf-0.21.5 $/usr/local/
### Translation from RTF performed by UnRTF, version 0.21.5
### font table contains 29 fonts total
TITLE: This is a test RTF
AUTHOR: Nate
-----------------
This is a test RTF
Hi! Im a test file. This is some bold text, and some italic text, as well as some underline text. And a bit of hidden text. So were going to end this paragraph here and go on to a nice little list:
"
Item 1
"
Item 2
"
Item 3
"
Item 4
And now comes a fun table:
Cell 1 Cell 2
More in cell 2 Cell 3
Next row Next row Next row
A page break:
And here were on the next page.
This para has a This is the actual content of the footnote.footnote.
And heres yet another paragraph.
Here is the output of grepping the codebase that shows no implementation of the quiet flag in src
[me] unrtf-0.21.5 $grep -nri "quiet" .
./INSTALL:
./ChangeLog:2: - added '--quiet' flag which suppresses leading comments in output
./config.
./config.
./doc/unrtf.
./doc/unrtf.
./configure:1027: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./configure:1295: -q, --quiet, --silent do not print \`checking ...' messages
./configure:1882: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./configure:1898: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
./configure:5010: -q, --quiet, --silent
./configure:5104: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
./configure:5884: ac_config_
Binary file ./src/unrtf matches
./src/main.c:53: * 14 Dec 11, <email address hidden>: cleaned up get_config added --quiet
./src/main.
./src/main.c:166: else if (!strcmp("--quiet", argv[i])) quiet = TRUE;
Binary file ./src/main.o matches