From 4c0cfabe950e5c787fb279d0509650c9decc67b6 Mon Sep 17 00:00:00 2001 From: hogejo Date: Fri, 29 Nov 2024 20:47:19 +0100 Subject: [PATCH 1/3] fix typo in docs source example --- docs/index.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.adoc b/docs/index.adoc index 1def3476..9faa8bd8 100644 --- a/docs/index.adoc +++ b/docs/index.adoc @@ -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"); From 2b4c0da30d21edd18dcb83780c9e86bb48f288f3 Mon Sep 17 00:00:00 2001 From: hogejo Date: Fri, 29 Nov 2024 21:08:48 +0100 Subject: [PATCH 2/3] fix example code for 5. Main parameter #450 --- docs/index.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.adoc b/docs/index.adoc index 9faa8bd8..68d479b5 100644 --- a/docs/index.adoc +++ b/docs/index.adoc @@ -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"`. From d66190451f50a4aee84b13dddd83bb1f1e85527b Mon Sep 17 00:00:00 2001 From: hogejo Date: Fri, 29 Nov 2024 21:16:27 +0100 Subject: [PATCH 3/3] run asciidoctor to generate index.html --- docs/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index 38e340a0..82972465 100644 --- a/docs/index.html +++ b/docs/index.html @@ -4,7 +4,7 @@ - + JCommander