Skip to content

Commit

Permalink
add alias and disallow unknown flags
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsinature committed Nov 16, 2024
1 parent ab2c6e8 commit 4eff08b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions bin/hardbrake
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ Usage
`,
{
importMeta: import.meta,
allowUnknownFlags: false,
flags: {
station: {
type: "string",
help: {
type: "boolean",
alias: "h",
},
version: {
type: "boolean",
alias: "v",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hardbrake",
"version": "1.1.1",
"version": "1.1.2",
"module": "src/index.ts",
"type": "module",
"license": "MIT",
Expand Down

0 comments on commit 4eff08b

Please sign in to comment.