summaryrefslogtreecommitdiff
path: root/src/glsl/apps
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-17 08:59:02 -0700
committerBrian Paul <brianp@vmware.com>2010-02-17 08:59:02 -0700
commit5b392ff49ab6be3947b457feafdbb72463fd0686 (patch)
tree49f6d750acf186bce5debc4874435fd0cc8faffd /src/glsl/apps
parent6b4a553dd34764f8c696ae8198d98efbb28bbc93 (diff)
glsl/apps: print usage info if insufficient args
Diffstat (limited to 'src/glsl/apps')
-rw-r--r--src/glsl/apps/process.c1
-rw-r--r--src/glsl/apps/purify.c1
-rw-r--r--src/glsl/apps/tokenise.c1
-rw-r--r--src/glsl/apps/version.c1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c
index 2d2ab911ac..e65f35cc00 100644
--- a/src/glsl/apps/process.c
+++ b/src/glsl/apps/process.c
@@ -47,6 +47,7 @@ main(int argc,
unsigned int i;
if (argc != 3) {
+ printf("Usage: process infile outfile\n");
return 1;
}
diff --git a/src/glsl/apps/purify.c b/src/glsl/apps/purify.c
index 8c01f4fc6a..3019e8b220 100644
--- a/src/glsl/apps/purify.c
+++ b/src/glsl/apps/purify.c
@@ -45,6 +45,7 @@ main(int argc,
FILE *out;
if (argc != 3) {
+ printf("Usage: purify infile outfile\n");
return 1;
}
diff --git a/src/glsl/apps/tokenise.c b/src/glsl/apps/tokenise.c
index 9ff73157e9..c70c3ccbb1 100644
--- a/src/glsl/apps/tokenise.c
+++ b/src/glsl/apps/tokenise.c
@@ -46,6 +46,7 @@ main(int argc,
unsigned int i;
if (argc != 3) {
+ printf("Usage: tokenize infile outfile\n");
return 1;
}
diff --git a/src/glsl/apps/version.c b/src/glsl/apps/version.c
index 40a4a069c3..0420f97294 100644
--- a/src/glsl/apps/version.c
+++ b/src/glsl/apps/version.c
@@ -45,6 +45,7 @@ main(int argc,
FILE *out;
if (argc != 3) {
+ printf("Usage: version infile outfile\n");
return 1;
}