Skip to content
houseofzeus edited this page Apr 20, 2012 · 3 revisions

Welcome to the duplo-fork wiki!

Wishlist

Improved Argument Parsing

Currently duplo's argument parsing feels somewhat clunky. In particular, duplo does not currently handle:

$ **duplo** '*.java' > file.txt

This does not work because:

  • Duplo expects the first argument to be a file containing a list of the files to be processed. It does not appear to handle the provision of the list on the command line in this manner.
  • Duplo does not output the results to standard output, in this case the desired result could have been obtained by providing file.txt as the second argument to duplo rather than as part of a re-direction. This does not however assist in the case where the user wants to pipe the output to a different program.

Suggested changes:

  • Provide --verbose option, the output currently printed to standard output would only be displayed when verbose was set.
  • Always print the output currently printed to file (assumed to be the second/last argument) to standard output. Users who do want the output in a file would still be able to do this using redirection.
  • Add a parameter to provide an input file, for users who want to continue using that behaviour.
  • Treat all non-flag arguments as files to be processed.

Syntax Highlighting

It should be possible to direct the output which is currently placed in the results file to stdout. When this is being done the code blocks would (optionally) be displayed with syntax highlighting.

http://www.gnu.org/software/src-highlite/

Clone this wiki locally