Skip to content

Commit 655ed4b

Browse files
committed
! update docs: add version option for scripts
1 parent 4c6b7f8 commit 655ed4b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/java.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ CPU usage calculation control:
159159

160160
Miscellaneous:
161161
-h, --help display this help and exit.
162+
-V, --version display version information and exit.
162163
```
163164
164165
### 示例
@@ -210,7 +211,7 @@ $ show-busy-java-threads
210211
211212
### 贡献者
212213
213-
- [silentforce](https://github.com/silentforce)改进此脚本,增加对环境变量`JAVA_HOME`的判断。 [#15](https://github.com/oldratlee/useful-scripts/pull/15)
214+
- [silentforce](https://github.com/silentforce) 改进此脚本,增加对环境变量`JAVA_HOME`的判断。 [#15](https://github.com/oldratlee/useful-scripts/pull/15)
214215
- [liuyangc3](https://github.com/liuyangc3)
215216
- 发现并解决`jstack`非当前用户`Java`进程的问题。 [#50](https://github.com/oldratlee/useful-scripts/pull/50)
216217
- 优化性能,通过`read -a`简化反复的`awk`操作。 [#51](https://github.com/oldratlee/useful-scripts/pull/51)
@@ -273,6 +274,7 @@ Examples:
273274
show-duplicate-java-classes -J path/to/lib_dir1
274275
275276
Options:
277+
--version show program's version number and exit
276278
-h, --help show this help message and exit
277279
-L, --recursive-lib search jars in the sub-directories of lib dir
278280
-J, --recursive-jar search jars in the jar file
@@ -409,7 +411,7 @@ Find in 232 class paths:
409411
410412
### 贡献者
411413
412-
[tgic](https://github.com/tg123)提供此脚本。友情贡献者的链接 [commandlinefu.cn](http://commandlinefu.cn/) | [微博linux命令行精选](http://weibo.com/u/2674868673)
414+
[tgic](https://github.com/tg123) 提供此脚本。友情贡献者的链接 [commandlinefu.cn](http://commandlinefu.cn/) | [微博linux命令行精选](http://weibo.com/u/2674868673)
413415
414416
<a id="beer-find-in-jarssh"></a>
415417
<a id="beer-find-in-jars"></a>
@@ -493,6 +495,7 @@ Output control:
493495
494496
Miscellaneous:
495497
-h, --help display this help and exit
498+
-V, --version display version information and exit
496499
```
497500
498501
注意,Pattern缺省是`grep`的 **扩展**正则表达式。

docs/shell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Run command and put output to system clipper.
9999
If no command is specified, read from stdin(pipe).
100100

101101
Example:
102-
c echo 'hello world!'
102+
c echo "hello world!"
103103
c grep -i 'hello world' menu.h main.c
104104
set | c
105105
c -q < ~/.ssh/id_rsa.pub
@@ -108,6 +108,7 @@ Options:
108108
-k, --keep-eol do not trim new line at end of file
109109
-q, --quiet suppress all normal output, default is false
110110
-h, --help display this help and exit
111+
-V, --version display version information and exit
111112
```
112113
113114
### 参考资料
@@ -327,6 +328,7 @@ Options:
327328
default is 256m
328329
avoid consuming large memory unexpectedly
329330
-h, --help display this help and exit
331+
-V, --version display version information and exit
330332
```
331333
332334
🍺 [ap](../bin/ap) and [rp](../bin/rp)

0 commit comments

Comments
 (0)