[Scummvm-devel] CLI frontend for the tools.

Remere remere at gmail.com
Tue May 12 00:30:06 CEST 2009


Hello, as you might recall, I'm one of the GSoC students. But I've been
quite busy lately, but now I thought to gather input on how to actually
realize it.
What I'm curious is the style of the CLI arguments to the program, as
unifying them will mean cleaner code for the tools, and make it easier for
the people who prefer the terminal to use.
You can find how all the individual tools now work here (ie. CLI style):
http://scummvm.svn.sourceforge.net/viewvc/scummvm/tools/trunk/README?revision=35144
For the extraction tools, the format of input parameters is quite well
defined, however, I propose that output should be controlled by a '-o'
parameter, which is a directory (or filename, depending on the tool) to
output to, which would default to './' (currernt directory, if the output is
a single file, default name is based on the tool used). A special --tool
parameter is supplied to select the correct format if it cannot be decided
by heuristic (perhaps the tool should also ask for input then also?). So the
format becomes:
  extract [extra params] [--tool tool-to-use] inputfiles.... [-o outputfile]
For the compression tools the format is slightly more complex, mainly
because alot of tools expect specific parameters, also:
  compress [extra-params] [--tool tool-to-use] [tool-specific-params]
inputfiles [-o outputfile/dir]
extra-params is generally compression specifics such as bitrate. Perhaps
I'll also write better documentation of this.
Opinions are most welcome, I probably haven't covered all angles here, and
maybe another argument style is preferred?.
Joakim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20090512/9144124e/attachment.html>


More information about the Scummvm-devel mailing list