Hi,

Today I found that most utilities in "utils" (pdftoppm, pdftotext,
pdftocairo, etc) accept all of "-h", "-?", "-help", "--help" options,
but pdftohtml accepts only "-h" and "-help". It is not a bug, but
doing as others would be more intuitive, slightly.

Attached is a patch for such purpose. Please consider!

Regards,
mpsuzuki
diff --git a/utils/pdftohtml.cc b/utils/pdftohtml.cc
index bcec8cb..5415bfa 100644
--- a/utils/pdftohtml.cc
+++ b/utils/pdftohtml.cc
@@ -104,8 +104,12 @@ static const ArgDesc argDesc[] = {
    "don't print any messages or errors"},
   {"-h",      argFlag,     &printHelp,     0,
    "print usage information"},
+  {"-?",      argFlag,     &printHelp,     0,
+   "print usage information"},
   {"-help",   argFlag,     &printHelp,     0,
    "print usage information"},
+  {"--help",  argFlag,     &printHelp,     0,
+   "print usage information"},
   {"-p",      argFlag,     &printHtml,     0,
    "exchange .pdf links by .html"}, 
   {"-c",      argFlag,     &complexMode,          0,
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to