Skip to content

Commit

Permalink
Recognize unknown arguments containing dash
Browse files Browse the repository at this point in the history
Fixes #63
  • Loading branch information
davazp committed Mar 28, 2019
1 parent 027e477 commit 6582da8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/delisp/src/index.ts
Expand Up @@ -17,5 +17,6 @@ yargs
.command(cmdCompile)
// Commands for editor integration
.command(cmdInferType)
.parserConfiguration({ "camel-case-expansion": false })
.strict()
.help("help").argv;
7 changes: 7 additions & 0 deletions packages/delisp/src/types.d.ts
@@ -0,0 +1,7 @@
import yargs from "yargs";

declare module "yargs" {
interface Argv<T = {}> {
parserConfiguration(x: unknown): Argv<T>;
}
}

0 comments on commit 6582da8

Please sign in to comment.