added --help option, updated util/Transform

git-svn-id: svn://anubis/fart/trunk@26 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop committed 2009-01-22 03:28:51 +00:00
1 parent 5692558733
commit 1454fe8c2e
3 files changed
+23 -7

No files matched your search

+4
View File
@@ -28,6 +28,7 @@ int main(int argc, char * argv[])
map<string, const char *> scene_options;
static const struct option long_options[] = {
{ "help", no_argument, NULL, 256 },
{ "output-file", required_argument, NULL, 'o' },
{ "width", required_argument, NULL, 'w' },
{ "height", required_argument, NULL, 'h' },
@@ -41,6 +42,9 @@ int main(int argc, char * argv[])
{
switch (opt)
{
case 256:
usage(argv[0]);
break;
case 'o':
scene_options["output-file"] = optarg;
break;