From: Brian Paul Date: Wed, 17 Feb 2010 15:59:02 +0000 (-0700) Subject: glsl/apps: print usage info if insufficient args X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b392ff49ab6be3947b457feafdbb72463fd0686;p=mesa.git glsl/apps: print usage info if insufficient args --- 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; }