Skip to content

Commit

Permalink
fix: flag types
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 2, 2023
1 parent aa8f8e5 commit 53305f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microlink/cli",
"description": "Interacting with Microlink API from your terminal.",
"homepage": "https://nicedoc.io/microlinkhq/cli",
"homepage": "https://github.com/microlinkhq/cli",
"version": "2.1.7",
"main": "src/index.js",
"bin": {
Expand Down
20 changes: 5 additions & 15 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,12 @@
const mri = require('mri')

const { _, ...flags } = mri(process.argv.slice(2), {
boolean: ['color', 'copy', 'pretty'],
default: {
apiKey: {
default: process.env.MICROLINK_API_KEY
},
pretty: {
type: 'boolean',
default: true
},
color: {
type: 'boolean',
default: true
},
copy: {
type: 'boolean',
default: false
}
apiKey: process.env.MICROLINK_API_KEY,
pretty: true,
color: true,
copy: false
}
})

Expand Down

0 comments on commit 53305f1

Please sign in to comment.