documentation fixes.
authorkramm <kramm>
Sun, 6 Apr 2003 22:00:08 +0000 (22:00 +0000)
committerkramm <kramm>
Sun, 6 Apr 2003 22:00:08 +0000 (22:00 +0000)
pdf2swf/font2swf.1
pdf2swf/font2swf.cc

index 03ef9f1..14b3231 100644 (file)
@@ -1,17 +1,27 @@
-.TH font2swf "1" "January 2003" "font2swf" "swftools"
+.TH font2swf "1" "April 2003" "font2swf" "swftools"
 .SH NAME
 font2swf - convert Type 1 Font files to SWF
 .SH Synopsis
 .B font2swf font.afm
 .SH DESCRIPTION
 This tools converts Type 1 Fonts to SWF.
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Print short help message and exit
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Be verbose. Use more than one -v for greater effect.
+.TP
+\fB\-o\fR, \fB\-\-output\fR \fIfilename\fR
+Write output to file \fIfilename\fR
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Print version info and exit
 .SH BUGS
 .PP
 TrueType fonts don't work yet.
 .TP
---help doesn't work.
-.TP
-The manpage could be a little more helpful. ;)
 
 .SH AUTHOR
 
index 3f351f1..e44c0e5 100644 (file)
@@ -69,6 +69,7 @@ void args_callback_usage(char*name)
     printf("\n");
     printf("\t-h , --help\t\t Print help and exit\n");
     printf("\t-o , --output filename\t set output filename\n");
+    printf("\t-v , --verbose\t\t Be more verbose\n");
     printf("\t-V , --version\t\t Print program version and exit\n");
 }
 int args_callback_command(char*name,char*val)
@@ -251,6 +252,10 @@ int main(int argc, char ** argv)
   char cwd[128];
   getcwd(cwd, 128);
   processargs(argc, argv);
+  if(!all && !filenum) {
+      fprintf(stderr, "You must supply a filename.\n");
+      exit(1);
+  }
   //TODO: use tempnam here. Check if environment already contains a
   //T1LIB_CONFIG.
   putenv( "T1LIB_CONFIG=/tmp/t1lib.config.tmp");