Skip to content

Commit d3a9c78

Browse files
committed
fix the stacktrace number when printing the sh file in parse-args.sh
1 parent b2f930a commit d3a9c78

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spec/utility/parse-args_spec.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Describe 'parse-arg.sh'
2626
The output should include '-v'
2727
The output should include 'The version'
2828
The output should include '-wv'
29+
The output should include 'Version of evaluation.sh'
2930
The output should not include 'Examples'
3031
End
3132
It 'with examples'

src/utility/parse-args.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function parseArgumentsInternal {
150150
}
151151

152152
function parseArgumentsInternal_printHelp() {
153-
parse_args_printHelp parseArguments_paramArr "$parseArguments_examples" "$parseArguments_version" 4
153+
parse_args_printHelp parseArguments_paramArr "$parseArguments_examples" "$parseArguments_version" 5
154154
}
155155

156156
local -i parseArguments_numOfArgumentsParsed=0

0 commit comments

Comments
 (0)