Skip to content

Commit

Permalink
make convert command implicit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKhanj committed Mar 12, 2024
1 parent d199561 commit e28debb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function parseArgs(): Args | void {
const showHelp = !!argv.find((p) => ["-h", "--help"].includes(p));
if (showHelp) return help();

const [command, ...options] = argv;
const [command, ...options] = argv[0].startsWith("-")
? ["convert", ...argv]
: argv;
const o = options.map((option) => option.trim());

const obj = {} as Record<string, string | boolean>;
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": "convconv",
"version": "0.3.3",
"version": "0.3.4",
"description": "Naming Conventions Converter",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit e28debb

Please sign in to comment.