Skip to content

Commit 21700ca

Browse files
committed
Change help message
1 parent 2e6c907 commit 21700ca

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Added basic message when no arguments are given.
55
- Changed output of `getVersions` to replace '`.x`' with the actual game version.
66
- Changed CLI output of `--list` to present the versions in prose instead of JSON.
7+
- Changed help message.
78

89
## 1.3.16
910
- Updated resource pack format to `36`.

src/cli.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const VERSION = require('../package.json').version
44

55
const indent = (n: number): string => ' '.repeat(n * 4)
66
const log = function (arg: string, desc: string[], example: string): void {
7-
console.log(`\n${indent(2)}pack-format ${arg}`)
7+
console.log(`\n${indent(1)}pack-format ${arg}`)
88
for (let i in desc)
9-
console.log(indent(3) + desc[i])
9+
console.log(indent(2) + desc[i])
1010
console.log(`${indent(3)}Example: ${example}`)
1111
}
1212

@@ -24,20 +24,19 @@ const ver = args._[0]
2424

2525
// Print the help message
2626
if (args.help) {
27-
console.log(`\n${indent(1)}pack-format arguments:`)
2827
log(
2928
'<version>',
3029
['Retrieve the resource and data pack formats of any Minecraft version.'],
3130
'pack-format 1.16',
3231
)
3332
log(
3433
'(--data|-d) <version>',
35-
['Retrieve the data pack format in particular when applicable.'],
34+
['Retrieve the data pack format only of the version.'],
3635
'pack-format --data 20w45a',
3736
)
3837
log(
3938
'(--resource|-r) <version>',
40-
['Retrieve the resource pack format in particular when applicable.'],
39+
['Retrieve the resource pack format only of the version.'],
4140
'pack-format --resource 20w45a',
4241
)
4342
log(

0 commit comments

Comments
 (0)