Skip to content

Commit dc78aea

Browse files
committed
Autodoc commit for master/289232fc
1 parent c162027 commit dc78aea

3 files changed

Lines changed: 92 additions & 92 deletions

File tree

api-index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<html>
22
<head>
3-
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
3+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
44
<title>Index - Command-line processor 0.3.4 API documentation</title>
5-
<link href="static/favicon.png" rel="icon" />
6-
<link href="static/favicon.png" rel="shortcut icon" />
7-
<link media="all" type="text/css" href="static/clojure.css" rel="stylesheet" />
8-
<link media="all" type="text/css" href="static/wiki.css" rel="stylesheet" />
9-
<link media="all" type="text/css" href="static/internal.css" rel="stylesheet" />
5+
<link rel="icon" href="static/favicon.png" />
6+
<link rel="shortcut icon" href="static/favicon.png" />
7+
<link rel="stylesheet" href="static/clojure.css" type="text/css" media="all" />
8+
<link rel="stylesheet" href="static/wiki.css" type="text/css" media="all" />
9+
<link rel="stylesheet" href="static/internal.css" type="text/css" media="all" />
1010
<style>.menuWrapper{height: 36px;}</style>
1111
</head>
1212
<!--
@@ -19,27 +19,27 @@
1919
<body>
2020
<div id="AllContentContainer">
2121
<div id="Header">
22-
<a id="Logo" href="index.html"><img alt="Clojure" height="100" width="100" src="static/clojure-icon.gif" /></a>
23-
<h1><a title="page header title" id="page-header" href="index.html">tools.cli API Reference</a></h1>
22+
<a href="index.html" id="Logo"><img src="static/clojure-icon.gif" width="100" height="100" alt="Clojure" /></a>
23+
<h1><a href="index.html" id="page-header" title="page header title">tools.cli API Reference</a></h1>
2424
</div>
2525
<div id="leftcolumn"><div style="text-align: center;"></div>
2626
<div class="menu">
2727
<div class="WikiCustomNav WikiElement wiki">
2828
<span class="toc-header"><span id="project-name">Command-line processor</span> <span id="version">0.3.4</span> API</span><br />
2929
<ul>
30-
<li><a class="wiki_link" href="index.html">Overview</a></li>
31-
<li><a class="wiki_link" href="api-index.html">API Index</a></li>
30+
<li><a href="index.html" class="wiki_link">Overview</a></li>
31+
<li><a href="api-index.html" class="wiki_link">API Index</a></li>
3232
</ul>
3333

3434

35-
<a href="http://clojure.org" class="wiki_link">Clojure Home</a>
35+
<a class="wiki_link" href="http://clojure.org">Clojure Home</a>
3636
</div>
3737
</div>
3838
</div>
3939
<div id="rightcolumn">
4040
<div id="Content">
4141
<div class="contentBox"><div class="innerContentBox">
42-
<div id="content_view" class="wiki wikiPage">
42+
<div class="wiki wikiPage" id="content_view">
4343
<div id="right-sidebar"></div>
4444
<div id="content-tag"><h1 id="overview">Index of Public Functions and Variables - <span id="header-project">Command-line processor</span> <span id="header-version">0.3.4</span><span id="header-status-block"> (<span id="header-status">in development</span>)</span></h1>
4545
This page has an alphabetical index of all the documented functions and variables
@@ -216,10 +216,10 @@ <h2 id="Other"><span id="section-head">Other</span></h2>
216216
</div>
217217
</div>
218218
<div id="foot">
219-
<div style="text-align: center;" id="copyright">Copyright 2007-2014 by Rich Hickey and the various contributors</div>
219+
<div id="copyright" style="text-align: center;">Copyright 2007-2015 by Rich Hickey and the various contributors</div>
220220
</div>
221221
</div>
222-
<div id="DesignedBy">Logo &amp; site design by <a title="Visit Tom Hickey's website." href="http://www.tomhickey.com">Tom Hickey</a>.<br />
222+
<div id="DesignedBy">Logo &amp; site design by <a href="http://www.tomhickey.com" title="Visit Tom Hickey's website.">Tom Hickey</a>.<br />
223223
Clojure auto-documentation system by Tom Faulhaber.</div>
224224
</div>
225225
<!-- /AllContentContainer -->

index-0.3.4.clj

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
{:namespaces
2-
({:source-url
3-
"https://github.com/clojure/tools.cli/blob/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
2+
({:doc "Tools for working with command line arguments.",
3+
:author "Gareth Jones, Sung Pae",
4+
:name "clojure.tools.cli",
45
:wiki-url
56
"http://clojure.github.com/tools.cli/clojure.tools.cli-api.html",
6-
:name "clojure.tools.cli",
7-
:author "Gareth Jones, Sung Pae",
8-
:doc "Tools for working with command line arguments."}),
7+
:source-url
8+
"https://github.com/clojure/tools.cli/blob/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj"}),
99
:vars
10-
({:arglists ([args & specs]),
10+
({:raw-source-url
11+
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
1112
:name "cli",
12-
:namespace "clojure.tools.cli",
13+
:file "src/main/clojure/clojure/tools/cli.clj",
1314
:source-url
1415
"https://github.com/clojure/tools.cli/blob/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj#L180",
15-
:raw-source-url
16-
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
17-
:wiki-url
18-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/cli",
16+
:line 180,
17+
:var-type "function",
18+
:arglists ([args & specs]),
1919
:doc
2020
"THIS IS A LEGACY FUNCTION and may be deprecated in the future. Please use\nclojure.tools.cli/parse-opts in new applications.\n\nParse the provided args using the given specs. Specs are vectors\ndescribing a command line argument. For example:\n\n[\"-p\" \"--port\" \"Port to listen on\" :default 3000 :parse-fn #(Integer/parseInt %)]\n\nFirst provide the switches (from least to most specific), then a doc\nstring, and pairs of options.\n\nValid options are :default, :parse-fn, and :flag. See\nhttps://github.com/clojure/tools.cli/wiki/Documentation-for-0.2.4 for more\ndetailed examples.\n\nReturns a vector containing a map of the parsed arguments, a vector\nof extra arguments that did not match known switches, and a\ndocumentation banner to provide usage instructions.",
21-
:var-type "function",
22-
:line 180,
23-
:file "src/main/clojure/clojure/tools/cli.clj"}
24-
{:arglists ([option-specs]),
25-
:name "get-default-options",
2621
:namespace "clojure.tools.cli",
22+
:wiki-url
23+
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/cli"}
24+
{:raw-source-url
25+
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
26+
:added "0.3.2",
27+
:name "get-default-options",
28+
:file "src/main/clojure/clojure/tools/cli.clj",
2729
:source-url
2830
"https://github.com/clojure/tools.cli/blob/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj#L458",
29-
:added "0.3.2",
30-
:raw-source-url
31-
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
32-
:wiki-url
33-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/get-default-options",
31+
:line 458,
32+
:var-type "function",
33+
:arglists ([option-specs]),
3434
:doc
3535
"Extract the map of default options from a sequence of option vectors.",
36-
:var-type "function",
37-
:line 458,
38-
:file "src/main/clojure/clojure/tools/cli.clj"}
39-
{:arglists ([args option-specs & options]),
40-
:name "parse-opts",
4136
:namespace "clojure.tools.cli",
37+
:wiki-url
38+
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/get-default-options"}
39+
{:raw-source-url
40+
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
41+
:added "0.3.0",
42+
:name "parse-opts",
43+
:file "src/main/clojure/clojure/tools/cli.clj",
4244
:source-url
4345
"https://github.com/clojure/tools.cli/blob/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj#L463",
44-
:added "0.3.0",
45-
:raw-source-url
46-
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
47-
:wiki-url
48-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/parse-opts",
46+
:line 463,
47+
:var-type "function",
48+
:arglists ([args option-specs & options]),
4949
:doc
5050
"Parse arguments sequence according to given option specifications and the\nGNU Program Argument Syntax Conventions:\n\n https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html\n\nOption specifications are a sequence of vectors with the following format:\n\n [short-opt long-opt-with-required-description description\n :property value]\n\nThe first three string parameters in an option spec are positional and\noptional, and may be nil in order to specify a later parameter.\n\nBy default, options are toggles that default to nil, but the second string\nparameter may be used to specify that an option requires an argument.\n\n e.g. [\"-p\" \"--port PORT\"] specifies that --port requires an argument,\n of which PORT is a short description.\n\nThe :property value pairs are optional and take precedence over the\npositional string arguments. The valid properties are:\n\n :id The key for this option in the resulting option map. This\n is normally set to the keywordized name of the long option\n without the leading dashes.\n\n Multiple option entries can share the same :id in order to\n transform a value in different ways, but only one of these\n option entries may contain a :default entry.\n\n This option is mandatory.\n\n :short-opt The short format for this option, normally set by the first\n positional string parameter: e.g. \"-p\". Must be unique.\n\n :long-opt The long format for this option, normally set by the second\n positional string parameter; e.g. \"--port\". Must be unique.\n\n :required A description of the required argument for this option if\n one is required; normally set in the second positional\n string parameter after the long option: \"--port PORT\".\n\n The absence of this entry indicates that the option is a\n boolean toggle that is set to true when specified on the\n command line.\n\n :desc A optional short description of this option.\n\n :default The default value of this option. If none is specified, the\n resulting option map will not contain an entry for this\n option unless set on the command line.\n\n :default-desc An optional description of the default value. This should be\n used when the string representation of the default value is\n too ugly to be printed on the command line.\n\n :parse-fn A function that receives the required option argument and\n returns the option value.\n\n If this is a boolean option, parse-fn will receive the value\n true. This may be used to invert the logic of this option:\n\n [\"-q\" \"--quiet\"\n :id :verbose\n :default true\n :parse-fn not]\n\n :assoc-fn A function that receives the current option map, the current\n option :id, and the current parsed option value, and returns\n a new option map.\n\n This may be used to create non-idempotent options, like\n setting a verbosity level by specifying an option multiple\n times. (\"-vvv\" -> 3)\n\n [\"-v\" \"--verbose\"\n :default 0\n :assoc-fn (fn [m k _] (update-in m [k] inc))]\n\n :validate A vector of [validate-fn validate-msg ...]. Multiple pairs\n of validation functions and error messages may be provided.\n\n :validate-fn A vector of functions that receives the parsed option value\n and returns a falsy value or throws an exception when the\n value is invalid. The validations are tried in the given\n order.\n\n :validate-msg A vector of error messages corresponding to :validate-fn\n that will be added to the :errors vector on validation\n failure.\n\nparse-opts returns a map with four entries:\n\n {:options The options map, keyed by :id, mapped to the parsed value\n :arguments A vector of unprocessed arguments\n :summary A string containing a minimal options summary\n :errors A possible vector of error message strings generated during\n parsing; nil when no errors exist}\n\nA few function options may be specified to influence the behavior of\nparse-opts:\n\n :in-order Stop option processing at the first unknown argument. Useful\n for building programs with subcommands that have their own\n option specs.\n\n :no-defaults Only include option values specified in arguments and do not\n include any default values in the resulting options map.\n Useful for parsing options from multiple sources; i.e. from a\n config file and from the command line.\n\n :strict Parse required arguments strictly: if a required argument value\n matches any other option, it is considered to be missing (and\n you have a parse error).\n\n :summary-fn A function that receives the sequence of compiled option specs\n (documented at #'clojure.tools.cli/compile-option-specs), and\n returns a custom option summary string.\n",
51-
:var-type "function",
52-
:line 463,
53-
:file "src/main/clojure/clojure/tools/cli.clj"}
54-
{:arglists ([specs]),
55-
:name "summarize",
5651
:namespace "clojure.tools.cli",
52+
:wiki-url
53+
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/parse-opts"}
54+
{:raw-source-url
55+
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
56+
:added "0.3.0",
57+
:name "summarize",
58+
:file "src/main/clojure/clojure/tools/cli.clj",
5759
:source-url
5860
"https://github.com/clojure/tools.cli/blob/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj#L443",
59-
:added "0.3.0",
60-
:raw-source-url
61-
"https://github.com/clojure/tools.cli/raw/289232fc40bf57418d1c2e1cafb205460a023c94/src/main/clojure/clojure/tools/cli.clj",
62-
:wiki-url
63-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/summarize",
61+
:line 443,
62+
:var-type "function",
63+
:arglists ([specs]),
6464
:doc
6565
"Reduce options specs into a options summary for printing at a terminal.\nNote that the specs argument should be the compiled version. That effectively\nmeans that you shouldn't call summarize directly. When you call parse-opts\nyou get back a :summary key which is the result of calling summarize (or\nyour user-supplied :summary-fn option) on the compiled option specs.",
66-
:var-type "function",
67-
:line 443,
68-
:file "src/main/clojure/clojure/tools/cli.clj"})}
66+
:namespace "clojure.tools.cli",
67+
:wiki-url
68+
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/summarize"})}

0 commit comments

Comments
 (0)