File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ Find control:
449
449
450
450
Output control:
451
451
-a, --absolute-path always print absolute path of jar file
452
- -s, --seperator specify the seperator between jar file and zip entry.
452
+ -s, --separator specify the separator between jar file and zip entry.
453
453
default is ` ! ' .
454
454
455
455
Miscellaneous:
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ Find control:
98
98
99
99
Output control:
100
100
-a, --absolute-path always print absolute path of jar file
101
- -s, --seperator specify the seperator between jar file and zip entry.
101
+ -s, --separator specify the separator between jar file and zip entry.
102
102
default is \` !'.
103
103
104
104
Miscellaneous:
@@ -124,8 +124,9 @@ while (( $# > 0 )); do
124
124
extension=(" ${extension[@]} " " $2 " )
125
125
shift 2
126
126
;;
127
- -s|--seperator)
128
- seperator=" $2 "
127
+ # support the typo option --seperator for compatibility
128
+ -s|--separator|--seperator)
129
+ separator=" $2 "
129
130
shift 2
130
131
;;
131
132
-E|--extended-regexp)
@@ -175,7 +176,7 @@ extension=${extension:-jar}
175
176
regex_mode=${regex_mode:- -E}
176
177
177
178
use_absolute_path=${use_absolute_path:- false}
178
- seperator =" ${seperator :-! } "
179
+ separator =" ${separator :-! } "
179
180
180
181
(( "${# args[@]} " == 0 )) && usage 1 " No find file pattern!"
181
182
(( "${# args[@]} " > 1 )) && usage 1 " More than 1 file pattern: ${args[@]} "
@@ -243,8 +244,8 @@ findInJarFiles() {
243
244
clearResponsiveMessage
244
245
245
246
$is_console &&
246
- echo " $ec [1;35m${jar_file}${eend}${ec} [1;32m${seperator }${eend}${file} " ||
247
- echo " ${jar_file}${seperator }${file} "
247
+ echo " $ec [1;35m${jar_file}${eend}${ec} [1;32m${separator }${eend}${file} " ||
248
+ echo " ${jar_file}${separator }${file} "
248
249
done
249
250
250
251
clearResponsiveMessage
Original file line number Diff line number Diff line change @@ -417,17 +417,17 @@ printStackOfThreads() {
417
417
418
418
if [ -n " $mix_native_frames " ]; then
419
419
local sed_script=" /--------------- $threadId ---------------/,/^---------------/ {
420
- /--------------- $threadId ---------------/b # skip first seperator line
421
- /^---------------/d # delete second seperator line
420
+ /--------------- $threadId ---------------/b # skip first separator line
421
+ /^---------------/d # delete second separator line
422
422
p
423
423
}"
424
424
elif [ -n " $force " ]; then
425
425
local sed_script=" /^Thread ${threadId} :/,/^$/ {
426
- /^$/d; p # delete end seperator line
426
+ /^$/d; p # delete end separator line
427
427
}"
428
428
else
429
429
local sed_script=" / nid=${threadId0x} /,/^$/ {
430
- /^$/d; p # delete end seperator line
430
+ /^$/d; p # delete end separator line
431
431
}"
432
432
fi
433
433
{
You can’t perform that action at this time.
0 commit comments