From 43ae72b9b0e400284d7c081ba86f327f18433cbe Mon Sep 17 00:00:00 2001 From: John Hewson Date: Wed, 23 Jan 2013 15:02:11 +0000 Subject: [PATCH] removed version from usage --- src/pdf2htmlEX.cc | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 1024206..0c158c5 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -34,18 +34,8 @@ using namespace pdf2htmlEX; Param param; ArgParser argparser; -void show_version() +void show_usage_and_exit(const char * dummy = nullptr) { - cerr << "pdftohtmlEX version " << PDF2HTMLEX_VERSION; - cerr << " (poppler " << POPPLER_VERSION; - cerr << ", libfontforge " << ffw_get_version() << ")"; - cerr << endl; - cerr << "Copyright 2012 Lu Wang " << endl; -} - -void show_usage() -{ - cerr << endl; cerr << "Usage: pdf2htmlEX [Options] []" << endl; cerr << endl; cerr << "Options:" << endl; @@ -56,16 +46,13 @@ void show_usage() exit(EXIT_FAILURE); } -void show_usage_and_exit(const char * dummy = nullptr) -{ - show_version(); - show_usage(); - exit(EXIT_FAILURE); -} - void show_version_and_exit(const char * dummy = nullptr) { - show_version(); + cerr << "pdftohtmlEX version " << PDF2HTMLEX_VERSION << endl; + cerr << "Copyright 2012 Lu Wang " << endl; + cerr << "Libraries: "; + cerr << "poppler " << POPPLER_VERSION << ", "; + cerr << "libfontforge " << ffw_get_version() << endl; exit(EXIT_FAILURE); }