<div>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.</div><div>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.</div>
<div></div><div>You can find how all the individual tools now work here (ie. CLI style): <a href="http://scummvm.svn.sourceforge.net/viewvc/scummvm/tools/trunk/README?revision=35144" target="_blank">http://scummvm.svn.sourceforge.net/viewvc/scummvm/tools/trunk/README?revision=35144</a> </div>
<div></div><div>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:</div>
<div></div><div> extract [extra params] [--tool tool-to-use] inputfiles.... [-o outputfile]</div><div></div><div>For the compression tools the format is slightly more complex, mainly because alot of tools expect specific parameters, also:</div>
<div></div><div> compress [extra-params] [--tool tool-to-use] [tool-specific-params] inputfiles [-o outputfile/dir]</div><div></div><div>extra-params is generally compression specifics such as bitrate. Perhaps I'll also write better documentation of this.</div>
<div></div><div></div><div>Opinions are most welcome, I probably haven't covered all angles here, and maybe another argument style is preferred?.</div><div></div>
<div>Joakim</div>