[Bug 310150] Re: -o/--output commandline option is broken in 2.10, 2.11

Lorenzo Bettini bettini at dsi.unifi.it
Sun Dec 21 09:23:04 UTC 2008


Hi, I'm the developer of GNU Source-highlight.
The command line option --output works ONLY when --input command line option is specified (which is not the case in the above command): it works if you specify

--input midiscriptengine.cpp

Indeed Source-highlight can handle also arguments without command
option, as in the example above where midiscriptengine.cpp is NOT the
argument of ANY command line option; this way source-highlight can also
handle more than one input file, and also, by relying on the underlying
shell, regular expressions, e.g.,

source-highlight --out-format=html *.cpp *.h *.c

when operating in this mode the --output command line option is ignored
(since this works only for one input file), and the output file is
created automatically by appending the corresponding output format file
extension, e.g., .html in my example, and .txt in your example.

Actually in previous versions (since 2.4) if it worked as you said, it
was not consistent, so that was actually a bug ;-)

I hope this clarifies the problem.

If you have suggestions on how to further document this behavior, please let me know.
Probably source-highlight should issue and error when --input is not specified, but this would not be consistent with the fact that the input file can be specified also with stdin redirection.

Lorenzo

-- 
-o/--output commandline option is broken in 2.10, 2.11
https://bugs.launchpad.net/bugs/310150
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list