You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Wrap command description. Replace trimRight by trimEnd.
* Preserve empty lines when wrapping
* Simplify line end handling
* Translate Windows line endings to keep things sane
test('when command description long then wrapped',()=>{
194
+
constprogram=newcommander.Command();
195
+
program
196
+
.configureHelp({helpWidth: 80})
197
+
.description(`Do fugiat eiusmod ipsum laboris excepteur pariatur sint ullamco tempor labore eu Do fugiat eiusmod ipsum laboris excepteur pariatur sint ullamco tempor labore eu
198
+
After line break Do fugiat eiusmod ipsum laboris excepteur pariatur sint ullamco tempor labore eu Do fugiat eiusmod ipsum laboris excepteur pariatur sint ullamco tempor labore eu`);
199
+
constexpectedOutput=`Usage: [options]
200
+
201
+
Do fugiat eiusmod ipsum laboris excepteur pariatur sint ullamco tempor labore
202
+
eu Do fugiat eiusmod ipsum laboris excepteur pariatur sint ullamco tempor
203
+
labore eu
204
+
After line break Do fugiat eiusmod ipsum laboris excepteur pariatur sint
205
+
ullamco tempor labore eu Do fugiat eiusmod ipsum laboris excepteur pariatur
0 commit comments