]> matita.cs.unibo.it Git - helm.git/commitdiff
- embedded configuration information in help string
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 12 Mar 2003 18:01:04 +0000 (18:01 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 12 Mar 2003 18:01:04 +0000 (18:01 +0000)
- bumped version to 0.2.1

helm/http_getter/http_getter_const.ml
helm/http_getter/http_getter_const.mli

index 44dfaab1bbd4b887cea561378fb293e783486d1f..765d446aa9460e07e6632a8ed07d242aa4ab489b 100644 (file)
 
 open Printf;;
 
-let version = "0.2.0"
+let version = "0.2.1"
 let conffile = "http_getter.conf.xml"
 
   (* TODO provide a better usage string *)
-let usage_string =
+let usage_string configuration =
   sprintf
 "
 <html>
@@ -41,6 +41,7 @@ let usage_string =
   </head>
   <body>
     <h1>HTTP Getter, version %s</h1>
+    <h2>Usage information</h2>
     <p>
     Usage: <kbd>http://hostname:getterport/</kbd><em>command</em>
     </p>
@@ -81,10 +82,12 @@ let usage_string =
     <p>
       <b><kbd>getempty</kbd></b><br />
     </p>
+    <h2>Current configuration</h2>
+    <pre>%s</pre>
   </body>
 </html>
 "
-    version
+    version configuration
 
 let empty_xml =
 "<?xml version=\"1.0\"?>
index 3b03950f514c0e8cc8fb490a1021e6076c5c3321..e50a469cbedcaba528236f9f043aa70d00d273c7 100644 (file)
@@ -28,5 +28,9 @@
 
 val version: string
 val conffile: string
-val usage_string: string
 val empty_xml: string
+
+  (** @return an HTML usage string including configuration information passed as
+  input parameter *)
+val usage_string: string -> string
+