Skip to content

Commit 260492c

Browse files
author
Tom Faulhaber
committed
Autodoc commit for master/01e77759
1 parent 8afd49c commit 260492c

3 files changed

Lines changed: 22 additions & 14 deletions

File tree

api-index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ <h1><a href="index.html" id="page-header" title="page header title">tools.cli AP
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.6</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
46-
in <span class="project-name-span">Command-line processor</span>.
46+
in <span class="project-name-span">Command-line processor</span>.
4747

4848
<!-- TODO: enable this functionality on github?
4949
50-
In a narrow browser window, you may want to collapse the sidebar (use the \"<<\" link)
51-
to get more screen space for the index.
50+
In a narrow browser window, you may want to collapse the sidebar (use the \"<<\" link)
51+
to get more screen space for the index.
5252
-->
53-
54-
<div class="shortcuts">
53+
<p>
54+
</p><div class="shortcuts">
5555
Shortcuts:<br />
5656
<a href="#A">A</a> <a href="#B">B</a> <a href="#C">C</a> <a href="#D">D</a>
5757
<a href="#E">E</a> <a href="#F">F</a> <a href="#G">G</a> <a href="#H">H</a>
58-
<a href="#I">I</a> <a href="#J">J</a> <a href="#K">K</a> <a href="#L">L</a>
58+
<a href="#I">I</a> <a href="#J">J</a> <a href="#K">K</a> <a href="#L">L</a>
5959
<a href="#M">M</a>
6060
<br />
6161
<a href="#N">N</a> <a href="#O">O</a> <a href="#P">P</a> <a href="#Q">Q</a>

index-0.3.6.clj

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
({:doc "Tools for working with command line arguments.",
33
:author "Gareth Jones, Sung Pae",
44
:name "clojure.tools.cli",
5-
:wiki-url
6-
"http://clojure.github.com/tools.cli/clojure.tools.cli-api.html",
5+
:wiki-url "http://clojure.github.io/tools.cli/index.html",
76
:source-url
87
"https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj"}),
98
:vars
@@ -20,7 +19,7 @@
2019
"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.",
2120
:namespace "clojure.tools.cli",
2221
:wiki-url
23-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/cli"}
22+
"http://clojure.github.io/tools.cli//index.html#clojure.tools.cli/cli"}
2423
{:raw-source-url
2524
"https://github.com/clojure/tools.cli/raw/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj",
2625
:added "0.3.0",
@@ -35,7 +34,7 @@
3534
"Format a sequence of summary parts into columns. lens is a sequence of\nlengths to use for parts. There are two sequences of lengths if we are\nnot displaying defaults. There are three sequences of lengths if we\nare showing defaults.",
3635
:namespace "clojure.tools.cli",
3736
:wiki-url
38-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/format-lines"}
37+
"http://clojure.github.io/tools.cli//index.html#clojure.tools.cli/format-lines"}
3938
{:raw-source-url
4039
"https://github.com/clojure/tools.cli/raw/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj",
4140
:added "0.3.2",
@@ -50,7 +49,7 @@
5049
"Extract the map of default options from a sequence of option vectors.",
5150
:namespace "clojure.tools.cli",
5251
:wiki-url
53-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/get-default-options"}
52+
"http://clojure.github.io/tools.cli//index.html#clojure.tools.cli/get-default-options"}
5453
{:raw-source-url
5554
"https://github.com/clojure/tools.cli/raw/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj",
5655
:added "0.3.0",
@@ -65,7 +64,7 @@
6564
"Given a single compiled option spec, turn it into a formatted string,\noptionally with its default values if requested.",
6665
:namespace "clojure.tools.cli",
6766
:wiki-url
68-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/make-summary-part"}
67+
"http://clojure.github.io/tools.cli//index.html#clojure.tools.cli/make-summary-part"}
6968
{:raw-source-url
7069
"https://github.com/clojure/tools.cli/raw/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj",
7170
:added "0.3.0",
@@ -80,7 +79,7 @@
8079
"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",
8180
:namespace "clojure.tools.cli",
8281
:wiki-url
83-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/parse-opts"}
82+
"http://clojure.github.io/tools.cli//index.html#clojure.tools.cli/parse-opts"}
8483
{:raw-source-url
8584
"https://github.com/clojure/tools.cli/raw/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj",
8685
:added "0.3.0",
@@ -95,4 +94,4 @@
9594
"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.",
9695
:namespace "clojure.tools.cli",
9796
:wiki-url
98-
"http://clojure.github.com/tools.cli//clojure.tools.cli-api.html#clojure.tools.cli/summarize"})}
97+
"http://clojure.github.io/tools.cli//index.html#clojure.tools.cli/summarize"})}

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ <h1 class="nopad">Table of Contents</h1>
7272
<a href="#clojure.tools.cli/summarize" class="toc-entry-anchor">summarize</a>
7373

7474
</div>
75+
</div><div class="toc-section" style="margin-left: 1em;">
76+
<a style="margin-top: 3px;" href="#"></a>
77+
7578
</div>
7679
</div>
7780
</div>
@@ -118,6 +121,7 @@ <h2 id="clojure.tools.cli/cli">cli</h2>
118121
Returns a vector containing a map of the parsed arguments, a vector
119122
of extra arguments that did not match known switches, and a
120123
documentation banner to provide usage instructions.</pre>
124+
<pre id="var-specs"></pre>
121125

122126

123127
<a id="var-source" href="https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj#L180">Source</a>
@@ -132,6 +136,7 @@ <h2 id="clojure.tools.cli/format-lines">format-lines</h2>
132136
lengths to use for parts. There are two sequences of lengths if we are
133137
not displaying defaults. There are three sequences of lengths if we
134138
are showing defaults.</pre>
139+
<pre id="var-specs"></pre>
135140
<span class="var-added"><span id="content">Added in Command-line processor version 0.3.0</span><br /></span>
136141

137142
<a id="var-source" href="https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj#L432">Source</a>
@@ -143,6 +148,7 @@ <h2 id="clojure.tools.cli/get-default-options">get-default-options</h2>
143148
<pre id="var-usage">Usage: (get-default-options option-specs)
144149
</pre>
145150
<pre id="var-docstr">Extract the map of default options from a sequence of option vectors.</pre>
151+
<pre id="var-specs"></pre>
146152
<span class="var-added"><span id="content">Added in Command-line processor version 0.3.2</span><br /></span>
147153

148154
<a id="var-source" href="https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj#L466">Source</a>
@@ -155,6 +161,7 @@ <h2 id="clojure.tools.cli/make-summary-part">make-summary-part</h2>
155161
</pre>
156162
<pre id="var-docstr">Given a single compiled option spec, turn it into a formatted string,
157163
optionally with its default values if requested.</pre>
164+
<pre id="var-specs"></pre>
158165
<span class="var-added"><span id="content">Added in Command-line processor version 0.3.0</span><br /></span>
159166

160167
<a id="var-source" href="https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj#L416">Source</a>
@@ -284,6 +291,7 @@ <h2 id="clojure.tools.cli/parse-opts">parse-opts</h2>
284291
(documented at #'clojure.tools.cli/compile-option-specs), and
285292
returns a custom option summary string.
286293
</pre>
294+
<pre id="var-specs"></pre>
287295
<span class="var-added"><span id="content">Added in Command-line processor version 0.3.0</span><br /></span>
288296

289297
<a id="var-source" href="https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj#L471">Source</a>
@@ -299,6 +307,7 @@ <h2 id="clojure.tools.cli/summarize">summarize</h2>
299307
means that you shouldn't call summarize directly. When you call parse-opts
300308
you get back a :summary key which is the result of calling summarize (or
301309
your user-supplied :summary-fn option) on the compiled option specs.</pre>
310+
<pre id="var-specs"></pre>
302311
<span class="var-added"><span id="content">Added in Command-line processor version 0.3.0</span><br /></span>
303312

304313
<a id="var-source" href="https://github.com/clojure/tools.cli/blob/401c51f3c2c5c549b9b4713951e41ed20cfcc4d7/src/main/clojure/clojure/tools/cli.clj#L451">Source</a>

0 commit comments

Comments
 (0)