Skip to content

Commit 99d40b0

Browse files
committed
stop swallowing last line of usage
1 parent 344a3b7 commit 99d40b0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
> - :house: [Internal]
1111
> - :nail_care: [Polish]
1212
13+
# 10.1.0-rc.4
14+
15+
#### :bug: Bug Fix
16+
17+
- Fix issue where the last line of `rescript format --help` usage was being swallowed https://github.com/rescript-lang/rescript-compiler/pull/5760
18+
1319
# 10.1.0-rc.3
1420

1521
#### :rocket: New Feature

scripts/rescript_arg.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function bad_arg(s) {
2626
/**
2727
* @typedef {{val : string}} stringref
2828
* @typedef {{val : boolean}} boolref
29-
* @typedef {{kind:"Unit_call",data : ()=>void } | {kind : "Unit_set", data : boolref}}unit_action
29+
* @typedef {{kind:"Unit_call",data : ()=>void } | {kind : "Unit_set", data : boolref}} unit_action
3030
* @typedef {{kind:"String_call",data:(s : string)=>void} | {kind : "String_set",data: stringref}} string_action
3131
* @typedef {{kind:"Unit",data : unit_action } | {kind:"String", data: string_action}} action
3232
* @typedef {Array<[string,action,string]>} specs
@@ -67,9 +67,7 @@ function usage_b(b, usage, specs) {
6767
cur = i + 1;
6868
}
6969
}
70-
if (i < specs.length - 1) {
71-
b.add("\n");
72-
}
70+
b.add("\n");
7371
}
7472
}
7573
}

0 commit comments

Comments
 (0)