Default to shorten command

This commit is contained in:
Jake 2019-04-12 16:25:10 +01:00
parent 27e79f0eec
commit 8f46819ac2
No known key found for this signature in database
GPG Key ID: 1E172AEEACF8AE3D
1 changed files with 3 additions and 1 deletions

4
cli.js
View File

@ -15,7 +15,9 @@ let funnies = new Funnies();
// configure program with version, description and commands
program.version(pkg.version)
.description(pkg.description)
.command("shorten [url]")
.command("shorten [url]", {
isDefault: true
})
.action(shorten);
program