Skip to content

Commit

Permalink
Remove trailing spaces from cli help text
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Apr 29, 2018
1 parent 1361fa5 commit 26ba80f
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,26 @@ if (argv.indexOf('--help') !== -1 || argv.indexOf('-h') !== -1) {
}

function help() {
return (
[
'',
'Usage: ' + pack.name + ' [options] <words...>',
'',
pack.description,
'',
'Options:',
'',
' -h, --help output usage information',
' -v, --version output version number',
'',
'Usage:',
'',
'# output directionality',
'$ ' + pack.name + ' @',
'# ' + direction('@'),
'',
'# output directionality from stdin',
"$ echo 'الانجليزية' | " + pack.name,
'# ' + direction('الانجليزية')
].join('\n ') + '\n'
)
return [
'',
' Usage: ' + pack.name + ' [options] <words...>',
'',
' ' + pack.description,
'',
' Options:',
'',
' -h, --help output usage information',
' -v, --version output version number',
'',
' Usage:',
'',
' # output directionality',
' $ ' + pack.name + ' @',
' # ' + direction('@'),
'',
' # output directionality from stdin',
" $ echo 'الانجليزية' | " + pack.name,
' # ' + direction('الانجليزية'),
''
].join('\n')
}

0 comments on commit 26ba80f

Please sign in to comment.