From 89c7f50b2df8c41d639d75f601e015499dacc10e Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 6 Apr 2003 22:00:08 +0000 Subject: [PATCH] documentation fixes. --- pdf2swf/font2swf.1 | 18 ++++++++++++++---- pdf2swf/font2swf.cc | 5 +++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/pdf2swf/font2swf.1 b/pdf2swf/font2swf.1 index 03ef9f1..14b3231 100644 --- a/pdf2swf/font2swf.1 +++ b/pdf2swf/font2swf.1 @@ -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 diff --git a/pdf2swf/font2swf.cc b/pdf2swf/font2swf.cc index 3f351f1..e44c0e5 100644 --- a/pdf2swf/font2swf.cc +++ b/pdf2swf/font2swf.cc @@ -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"); -- 1.7.10.4