@benev/argv
Advanced tools
Comparing version 0.0.0-dev.3 to 0.0.0
{ | ||
"name": "@benev/argv", | ||
"version": "0.0.0-dev.3", | ||
"version": "0.0.0", | ||
"description": "command line argument parser", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -129,1 +129,7 @@ | ||
- `+help` also works | ||
- you can disable the ansi colors by passing `theme: notheme` after `import {notheme} from "@benev/argv"` | ||
- you can disable the "tips" section by passing `tips: false` | ||
- you can also pass | ||
- `columns` current terminal width, used for text-wrapping | ||
- `help` description and usage instructions for your program | ||
- `readme` url to your program's readme |
@@ -144,3 +144,3 @@ | ||
async "--help magically works"() { | ||
const {run, exitCode} = tools(testCli()({ | ||
const {exitCode} = tools(testCli()({ | ||
args: {}, | ||
@@ -150,2 +150,3 @@ argorder: [], | ||
})) | ||
expect("should exit with code 0") | ||
@@ -152,0 +153,0 @@ .that(exitCode("--help")) |
@@ -115,3 +115,3 @@ import { tools } from "./rig/tools.js"; | ||
async "--help magically works"() { | ||
const { run, exitCode } = tools(testCli()({ | ||
const { exitCode } = tools(testCli()({ | ||
args: {}, | ||
@@ -118,0 +118,0 @@ argorder: [], |
Sorry, the diff of this file is not supported yet
135
101655
195
2062