summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-02-17 08:59:02 -0700
committerBrian Paul <[email protected]>2010-02-17 08:59:02 -0700
commit5b392ff49ab6be3947b457feafdbb72463fd0686 (patch)
tree49f6d750acf186bce5debc4874435fd0cc8faffd /src/glsl
parent6b4a553dd34764f8c696ae8198d98efbb28bbc93 (diff)
glsl/apps: print usage info if insufficient args
Diffstat (limited to 'src/glsl')
-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 2d2ab911ac4..e65f35cc00b 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 8c01f4fc6a3..3019e8b2204 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 9ff73157e9c..c70c3ccbb15 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 40a4a069c30..0420f97294d 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;
}