X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fhttp_getter%2Fhttp_getter_const.ml;h=71aed58d3b0256f3919606633461983a098809ba;hb=03d1ddf4a7fdf03fd497babd84d1963048253f0d;hp=cfa21fe913420cfa1c72421f2be9723f174d35f1;hpb=32bc9336091a84376f93b06325c08dab58124a0d;p=helm.git diff --git a/helm/http_getter/http_getter_const.ml b/helm/http_getter/http_getter_const.ml index cfa21fe91..71aed58d3 100644 --- a/helm/http_getter/http_getter_const.ml +++ b/helm/http_getter/http_getter_const.ml @@ -1,5 +1,7 @@ (* - * Copyright (C) 2003, HELM Team. + * Copyright (C) 2003: + * Stefano Zacchiroli + * for the HELM Team http://helm.cs.unibo.it/ * * This file is part of HELM, an Hypertextual, Electronic * Library of Mathematics, developed at the Computer Science @@ -21,17 +23,25 @@ * MA 02111-1307, USA. * * For details, see the HELM World-Wide-Web page, - * http://cs.unibo.it/helm/. + * http://helm.cs.unibo.it/ *) +open Printf;; + +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 " HTTP Getter's help message +

HTTP Getter, version %s

+

Usage information

Usage: http://hostname:getterport/command

@@ -57,6 +67,15 @@ let usage_string =

getxslt?uri=URI[&patch_dtd=(yes|no)]

+

+ list_servers
+

+

+ add_server?url=URL&position=POSITION
+

+

+ remove_server?position=POSITION
+

update

@@ -72,9 +91,12 @@ let usage_string =

getempty

+

Current configuration

+
%s
" + version configuration let empty_xml = "