summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2013-09-07 16:37:34 +0200
committerMarti Maria <info@littlecms.com>2013-09-07 16:37:34 +0200
commitad2cb04b3f01f1dcb8a718fb01f0e53f8fc05a90 (patch)
tree8d7a71fd25924a3eaedcbbe19c834ad10f83a35b
parentce0c8a075dabcccbec4c6927739c73b2adccc874 (diff)
downloadlcms2-ad2cb04b3f01f1dcb8a718fb01f0e53f8fc05a90.tar.gz
Fixing psicc several bugs
-rw-r--r--utils/psicc/psicc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/utils/psicc/psicc.c b/utils/psicc/psicc.c
index 3716177..1c3fe6c 100644
--- a/utils/psicc/psicc.c
+++ b/utils/psicc/psicc.c
@@ -102,9 +102,9 @@ void HandleSwitches(int argc, char *argv[])
static
void Help(void)
{
- fprintf(stderr, "little cms ICC PostScript generator - v2.0 [LittleCMS %2.2f]\n", LCMS_VERSION / 1000.0);
+ fprintf(stderr, "little CMS ICC PostScript generator - v2.1 [LittleCMS %2.2f]\n", LCMS_VERSION / 1000.0);
- fprintf(stderr, "usage: psicc [flags]\n\n");
+ fprintf(stderr, "usage: psicc [flags] [<Output file>]\n\n");
fprintf(stderr, "flags:\n\n");
@@ -119,6 +119,7 @@ void Help(void)
fprintf(stderr, "%cn<gridpoints> - Alternate way to set precission, number of CLUT points (CRD only)\n", SW);
fprintf(stderr, "\n");
+ fprintf(stderr, "If no output file is specified, output goes to stdout.\n\n");
fprintf(stderr, "This program is intended to be a demo of the little cms\n"
"engine. Both lcms and this program are freeware. You can\n"
"obtain both in source code at http://www.littlecms.com\n"
@@ -206,16 +207,14 @@ int main(int argc, char *argv[])
if (nargs != 0 && nargs != 1)
Help();
+ if (cInProf == NULL && cOutProf == NULL)
+ Help();
+
if (nargs == 0)
OutFile = stdout;
else
OutFile = fopen(argv[xoptind], "wt");
-
- if (cInProf == NULL && cOutProf == NULL)
- Help();
-
-
if (cInProf != NULL)
GenerateCSA();