From 2e6c907526a37589ae4affb20ce242330bbea872 Mon Sep 17 00:00:00 2001 From: Nixinova Date: Sun, 25 Aug 2024 19:24:14 +1200 Subject: [PATCH] Add basic info message --- changelog.md | 1 + src/cli.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/changelog.md b/changelog.md index dacd655..565f062 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,7 @@ # Changelog ## Next +- Added basic message when no arguments are given. - Changed output of `getVersions` to replace '`.x`' with the actual game version. - Changed CLI output of `--list` to present the versions in prose instead of JSON. diff --git a/src/cli.ts b/src/cli.ts index db93a19..6d68c12 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -104,3 +104,8 @@ else if (ver) { console.log(`Resource pack format of ${ver} is ${result}`) } } +// No input: print information +else { + console.log(`pack-format: version ${VERSION}.`) + console.log('Run pack-format --help for usage.') +}