Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small bits in docs #589

Merged
merged 3 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ will allow you to parse:

[source,bash]
----
$ java Main -debug file1 file2
$ java Main -debug 2 file1 file2
----

and the field files will receive the strings `"file1"` and `"file2"`.
Expand Down Expand Up @@ -928,8 +928,8 @@ CommandAdd add = new CommandAdd();
CommandCommit commit = new CommandCommit();
JCommander jc = JCommander.newBuilder()
.addObject(cm)
.addCommand("add", add);
.addCommand("commit", commit);
.addCommand("add", add)
.addCommand("commit", commit)
.build();

jc.parse("-v", "commit", "--amend", "--author=cbeust", "A.java", "B.java");
Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 2.0.16">
<meta name="generator" content="Asciidoctor 2.0.23">
<meta name="author" content="Cédric Beust">
<title>JCommander</title>
<style>
Expand Down Expand Up @@ -1462,7 +1462,7 @@ <h2 id="_main_parameter">5. Main parameter</h2>
</div>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code data-lang="bash">$ java Main -debug file1 file2</code></pre>
<pre class="prettyprint highlight"><code data-lang="bash">$ java Main -debug 2 file1 file2</code></pre>
</div>
</div>
<div class="paragraph">
Expand Down Expand Up @@ -1864,8 +1864,8 @@ <h2 id="_more_complex_syntaxes_commands">16. More complex syntaxes (commands)</h
CommandCommit commit = new CommandCommit();
JCommander jc = JCommander.newBuilder()
.addObject(cm)
.addCommand("add", add);
.addCommand("commit", commit);
.addCommand("add", add)
.addCommand("commit", commit)
.build();

jc.parse("-v", "commit", "--amend", "--author=cbeust", "A.java", "B.java");
Expand Down Expand Up @@ -2210,7 +2210,7 @@ <h2 id="_download">29. Download</h2>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2024-08-18 18:24:00 UTC
Last updated 2024-11-29 21:16:04 +0100
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/run_prettify.min.js"></script>
Expand Down