Skip to content

Commit 03541f6

Browse files
committed
Release picocli version 4.6.2
1 parent bd48d6f commit 03541f6

File tree

166 files changed

+2812
-2258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+2812
-2258
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The user manual has examples of integrating with [Guice](https://picocli.info/#_
7676

7777
### Releases
7878
* [All Releases](https://github.com/remkop/picocli/releases)
79-
* Latest: 4.6.1 [Release Notes](https://github.com/remkop/picocli/releases/tag/v4.6.1)
79+
* Latest: 4.6.2 [Release Notes](https://github.com/remkop/picocli/releases/tag/v4.6.2)
8080
* Older: Picocli 4.0 [Release Notes](https://github.com/remkop/picocli/releases/tag/v4.0.0)
8181
* Older: Picocli 3.0 [Release Notes](https://github.com/remkop/picocli/releases/tag/v3.0.0)
8282
* Older: Picocli 2.0 [Release Notes](https://github.com/remkop/picocli/releases/tag/v2.0.0)
@@ -246,9 +246,9 @@ If you like picocli, there are a few things you can do to help:
246246
* Upvote my [Quora answer](https://www.quora.com/What-is-the-best-way-to-parse-command-line-arguments-with-Java/answer/Remko-Popma) to "What is the best way to parse command-line arguments with Java?"
247247
* Upvote my [StackOverflow answer](https://stackoverflow.com/a/43780433/1446916) to "How do I parse command line arguments in Java?"
248248

249-
If you like picocli and your project is on GitHub, consider adding this badge to your README.md: [![picocli](https://img.shields.io/badge/picocli-4.6.1-green.svg)](https://github.com/remkop/picocli)
249+
If you like picocli and your project is on GitHub, consider adding this badge to your README.md: [![picocli](https://img.shields.io/badge/picocli-4.6.2-green.svg)](https://github.com/remkop/picocli)
250250
```
251-
[![picocli](https://img.shields.io/badge/picocli-4.6.1-green.svg)](https://github.com/remkop/picocli)
251+
[![picocli](https://img.shields.io/badge/picocli-4.6.2-green.svg)](https://github.com/remkop/picocli)
252252
```
253253

254254

@@ -336,41 +336,41 @@ See the [source code](https://github.com/remkop/picocli/blob/master/src/main/jav
336336

337337
### Gradle
338338
```
339-
implementation 'info.picocli:picocli:4.6.1'
339+
implementation 'info.picocli:picocli:4.6.2'
340340
```
341341
### Maven
342342
```
343343
<dependency>
344344
<groupId>info.picocli</groupId>
345345
<artifactId>picocli</artifactId>
346-
<version>4.6.1</version>
346+
<version>4.6.2</version>
347347
</dependency>
348348
```
349349
### Scala SBT
350350
```
351-
libraryDependencies += "info.picocli" % "picocli" % "4.6.1"
351+
libraryDependencies += "info.picocli" % "picocli" % "4.6.2"
352352
```
353353
### Ivy
354354
```
355-
<dependency org="info.picocli" name="picocli" rev="4.6.1" />
355+
<dependency org="info.picocli" name="picocli" rev="4.6.2" />
356356
```
357357
### Grape
358358
```groovy
359359
@Grapes(
360-
@Grab(group='info.picocli', module='picocli', version='4.6.1')
360+
@Grab(group='info.picocli', module='picocli', version='4.6.2')
361361
)
362362
```
363363
### Leiningen
364364
```
365-
[info.picocli/picocli "4.6.1"]
365+
[info.picocli/picocli "4.6.2"]
366366
```
367367
### Buildr
368368
```
369-
'info.picocli:picocli:jar:4.6.1'
369+
'info.picocli:picocli:jar:4.6.2'
370370
```
371371

372372
### JBang
373373
```
374-
//DEPS info.picocli:picocli:4.6.1
374+
//DEPS info.picocli:picocli:4.6.2
375375
```
376376

RELEASE-NOTES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# <a name="4.6.2"></a> Picocli 4.6.2
44
The picocli community is pleased to announce picocli 4.6.2.
55

6-
This release includes bugfixes and enhancements.
6+
This release includes bugfixes and enhancements. Many improvements in the documentation.
7+
8+
Thanks to the many people in the picocli community for raising issues and contributing pull requests to fix issues!
79

810
From this release, picocli uses system properties `sun.stdout.encoding` and `sun.stderr.encoding` when creating the `PrintWriters` returned by `CommandLine::getOut` and `CommandLine::getErr`.
911
When these system properties do not exist, picocli falls back to the default charset (determined by `file.encoding`).

docs/A-Whirlwind-Tour-of-Picocli.html

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,89 +1566,89 @@
15661566
});
15671567
});
15681568
</script>
1569-
<style>
1570-
.hidden {
1571-
display: none;
1572-
}
1573-
1574-
.switch {
1575-
border-width: 1px 1px 0 1px;
1576-
border-style: solid;
1577-
border-color: #7a2518;
1578-
display: inline-block;
1579-
}
1580-
1581-
.switch--item {
1582-
padding: 10px;
1583-
background-color: #ffffff;
1584-
color: #7a2518;
1585-
display: inline-block;
1586-
cursor: pointer;
1587-
}
1588-
1589-
.switch--item.selected {
1590-
background-color: #7a2519;
1591-
color: #ffffff;
1592-
}
1593-
1594-
</style>
1595-
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
1596-
<script type="text/javascript">
1597-
function addBlockSwitches() {
1598-
$('.primary').each(function() {
1599-
primary = $(this);
1600-
createSwitchItem(primary, createBlockSwitch(primary)).item.addClass("selected");
1601-
primary.children('.title').remove();
1602-
});
1603-
$('.secondary').each(function(idx, node) {
1604-
secondary = $(node);
1605-
primary = findPrimary(secondary);
1606-
switchItem = createSwitchItem(secondary, primary.children('.switch'));
1607-
switchItem.content.addClass('hidden');
1608-
findPrimary(secondary).append(switchItem.content);
1609-
secondary.remove();
1610-
});
1611-
}
1612-
1613-
function createBlockSwitch(primary) {
1614-
blockSwitch = $('<div class="switch"></div>');
1615-
primary.prepend(blockSwitch);
1616-
return blockSwitch;
1617-
}
1618-
1619-
function findPrimary(secondary) {
1620-
candidate = secondary.prev();
1621-
while (!candidate.is('.primary')) {
1622-
candidate = candidate.prev();
1623-
}
1624-
return candidate;
1625-
}
1626-
1627-
function createSwitchItem(block, blockSwitch) {
1628-
blockName = block.children('.title').text();
1629-
content = block.children('.content').first().append(block.next('.colist'));
1630-
item = $('<div class="switch--item">' + blockName + '</div>');
1631-
item.on('click', '', content, function(e) {
1632-
$(this).addClass('selected');
1633-
$(this).siblings().removeClass('selected');
1634-
e.data.siblings('.content').addClass('hidden');
1635-
e.data.removeClass('hidden');
1636-
});
1637-
blockSwitch.append(item);
1638-
return {'item': item, 'content': content};
1639-
}
1640-
1641-
$(addBlockSwitches);
1642-
1643-
</script>
1569+
<style>
1570+
.hidden {
1571+
display: none;
1572+
}
1573+
1574+
.switch {
1575+
border-width: 1px 1px 0 1px;
1576+
border-style: solid;
1577+
border-color: #7a2518;
1578+
display: inline-block;
1579+
}
1580+
1581+
.switch--item {
1582+
padding: 10px;
1583+
background-color: #ffffff;
1584+
color: #7a2518;
1585+
display: inline-block;
1586+
cursor: pointer;
1587+
}
1588+
1589+
.switch--item.selected {
1590+
background-color: #7a2519;
1591+
color: #ffffff;
1592+
}
1593+
1594+
</style>
1595+
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
1596+
<script type="text/javascript">
1597+
function addBlockSwitches() {
1598+
$('.primary').each(function() {
1599+
primary = $(this);
1600+
createSwitchItem(primary, createBlockSwitch(primary)).item.addClass("selected");
1601+
primary.children('.title').remove();
1602+
});
1603+
$('.secondary').each(function(idx, node) {
1604+
secondary = $(node);
1605+
primary = findPrimary(secondary);
1606+
switchItem = createSwitchItem(secondary, primary.children('.switch'));
1607+
switchItem.content.addClass('hidden');
1608+
findPrimary(secondary).append(switchItem.content);
1609+
secondary.remove();
1610+
});
1611+
}
1612+
1613+
function createBlockSwitch(primary) {
1614+
blockSwitch = $('<div class="switch"></div>');
1615+
primary.prepend(blockSwitch);
1616+
return blockSwitch;
1617+
}
1618+
1619+
function findPrimary(secondary) {
1620+
candidate = secondary.prev();
1621+
while (!candidate.is('.primary')) {
1622+
candidate = candidate.prev();
1623+
}
1624+
return candidate;
1625+
}
1626+
1627+
function createSwitchItem(block, blockSwitch) {
1628+
blockName = block.children('.title').text();
1629+
content = block.children('.content').first().append(block.next('.colist'));
1630+
item = $('<div class="switch--item">' + blockName + '</div>');
1631+
item.on('click', '', content, function(e) {
1632+
$(this).addClass('selected');
1633+
$(this).siblings().removeClass('selected');
1634+
e.data.siblings('.content').addClass('hidden');
1635+
e.data.removeClass('hidden');
1636+
});
1637+
blockSwitch.append(item);
1638+
return {'item': item, 'content': content};
1639+
}
1640+
1641+
$(addBlockSwitches);
1642+
1643+
</script>
16441644

16451645
</head>
16461646
<body class="article">
16471647
<div id="header">
16481648
<h1>A Whirlwind Tour of Picocli</h1>
16491649
<div class="details">
16501650
<span id="author" class="author">Remko Popma</span><br>
1651-
<span id="revnumber">version 4.6.1</span>
1651+
<span id="revnumber">version 4.6.2</span>
16521652
</div>
16531653
</div>
16541654
<div id="content">
@@ -1722,7 +1722,7 @@ <h3 id="_a_checksum_utility">A CheckSum Utility</h3>
17221722
<span class="annotation">@Option</span>(names = {<span class="string"><span class="delimiter">&quot;</span><span class="content">-a</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">--algorithm</span><span class="delimiter">&quot;</span></span>}, description = <span class="string"><span class="delimiter">&quot;</span><span class="content">MD5, SHA-1, SHA-256, ...</span><span class="delimiter">&quot;</span></span>)
17231723
<span class="directive">private</span> <span class="predefined-type">String</span> algorithm = <span class="string"><span class="delimiter">&quot;</span><span class="content">MD5</span><span class="delimiter">&quot;</span></span>;
17241724

1725-
<span class="directive">public</span> <span class="directive">static</span> <span class="type">void</span> main(<span class="predefined-type">String</span><span class="type">[]</span> args) <span class="directive">throws</span> <span class="exception">Exception</span> {
1725+
<span class="directive">public</span> <span class="directive">static</span> <span class="type">void</span> main(<span class="predefined-type">String</span><span class="type">[]</span> args) {
17261726
<span class="comment">// CheckSum implements Callable, so parsing, error handling and handling user</span>
17271727
<span class="comment">// requests for usage help or version help can be done with one line of code.</span>
17281728
CommandLine.call(<span class="keyword">new</span> CheckSum(), args);
@@ -2928,7 +2928,7 @@ <h3 id="_micronaut">Micronaut</h3>
29282928
<span class="annotation">@Option</span>(names = {<span class="string"><span class="delimiter">&quot;</span><span class="content">-x</span><span class="delimiter">&quot;</span></span>, <span class="string"><span class="delimiter">&quot;</span><span class="content">--option</span><span class="delimiter">&quot;</span></span>}, description = <span class="string"><span class="delimiter">&quot;</span><span class="content">example option</span><span class="delimiter">&quot;</span></span>)
29292929
<span class="type">boolean</span> flag;
29302930

2931-
<span class="directive">public</span> <span class="directive">static</span> <span class="type">void</span> main(<span class="predefined-type">String</span><span class="type">[]</span> args) <span class="directive">throws</span> <span class="exception">Exception</span> {
2931+
<span class="directive">public</span> <span class="directive">static</span> <span class="type">void</span> main(<span class="predefined-type">String</span><span class="type">[]</span> args) {
29322932
<span class="comment">// let Micronaut instantiate and inject services</span>
29332933
PicocliRunner.run(MyMicronautApp.class, args);
29342934
}
@@ -3086,8 +3086,8 @@ <h2 id="_conclusion">Conclusion</h2>
30863086
</div>
30873087
<div id="footer">
30883088
<div id="footer-text">
3089-
Version 4.6.1<br>
3090-
Last updated 2020-11-21 19:22:42 +0900
3089+
Version 4.6.2<br>
3090+
Last updated 2021-09-28 10:52:49 +0900
30913091
</div>
30923092
</div>
30933093
</body>

0 commit comments

Comments
 (0)