├── .github ├── FUNDING.yml ├── dependabot.yml └── workflows │ └── test.yml ├── .gitignore ├── .vscode └── settings.json ├── Drakefile.ts ├── LICENSE.md ├── README.md ├── _config.yml ├── ci └── install-sane-fmt.sh ├── examples ├── README.md ├── TODO.md ├── options.ts ├── share-options-between-subs.ts └── sub.ts ├── lib ├── LICENSE.md ├── README.md ├── command-errors.ts ├── command-types.ts ├── deps.ts ├── flag-errors.ts ├── flag-types.ts ├── help.ts ├── index.ts ├── symbols.ts ├── types.ts ├── utils.ts ├── value-errors.ts ├── value-types.ts └── wrapper.ts ├── run-on-save ├── test ├── deps.ts ├── tsfun │ ├── deps.ts │ └── mixed │ │ └── setup.ts ├── utils.ts └── wrapper │ ├── flags │ ├── binary-flag.test.ts │ ├── collect.test.ts │ ├── count-flag.test.ts │ ├── drain-all.test.ts │ ├── drain-until-flag.test.ts │ ├── early-exit-flag.test.ts │ ├── option.test.ts │ └── partial-option.test.ts │ ├── merge │ ├── help-sub.output.txt │ ├── help.output.txt │ ├── help.test.ts │ ├── parse-main-command.test.ts │ ├── parse-sub-command.test.ts │ └── setup.ts │ ├── mixed │ ├── help-sub0.output.txt │ ├── help-sub1.output.txt │ ├── help-sub2.output.txt │ ├── help.output.txt │ ├── help.test.ts │ ├── parse-main-command.test.ts │ ├── parse-sub-command.test.ts │ └── setup.ts │ └── values │ ├── choice.test.ts │ ├── finite-number.test.ts │ ├── integer.test.ts │ └── text.test.ts └── typecheck ├── deps.ts ├── from-test ├── tsfun.ts └── wrapper.ts └── merge.ts /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Drakefile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/Drakefile.ts -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/README.md -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/_config.yml -------------------------------------------------------------------------------- /ci/install-sane-fmt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/ci/install-sane-fmt.sh -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/TODO.md: -------------------------------------------------------------------------------- 1 | * [ ] Test the examples 2 | -------------------------------------------------------------------------------- /examples/options.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/examples/options.ts -------------------------------------------------------------------------------- /examples/share-options-between-subs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/examples/share-options-between-subs.ts -------------------------------------------------------------------------------- /examples/sub.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/examples/sub.ts -------------------------------------------------------------------------------- /lib/LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/LICENSE.md -------------------------------------------------------------------------------- /lib/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/README.md -------------------------------------------------------------------------------- /lib/command-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/command-errors.ts -------------------------------------------------------------------------------- /lib/command-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/command-types.ts -------------------------------------------------------------------------------- /lib/deps.ts: -------------------------------------------------------------------------------- 1 | export { once } from 'https://deno.land/x/once@0.2.1-ts/index.ts' 2 | -------------------------------------------------------------------------------- /lib/flag-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/flag-errors.ts -------------------------------------------------------------------------------- /lib/flag-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/flag-types.ts -------------------------------------------------------------------------------- /lib/help.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/help.ts -------------------------------------------------------------------------------- /lib/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/index.ts -------------------------------------------------------------------------------- /lib/symbols.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/symbols.ts -------------------------------------------------------------------------------- /lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/types.ts -------------------------------------------------------------------------------- /lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/utils.ts -------------------------------------------------------------------------------- /lib/value-errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/value-errors.ts -------------------------------------------------------------------------------- /lib/value-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/value-types.ts -------------------------------------------------------------------------------- /lib/wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/lib/wrapper.ts -------------------------------------------------------------------------------- /run-on-save: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/run-on-save -------------------------------------------------------------------------------- /test/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/deps.ts -------------------------------------------------------------------------------- /test/tsfun/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/tsfun/deps.ts -------------------------------------------------------------------------------- /test/tsfun/mixed/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/tsfun/mixed/setup.ts -------------------------------------------------------------------------------- /test/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/utils.ts -------------------------------------------------------------------------------- /test/wrapper/flags/binary-flag.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/binary-flag.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/collect.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/collect.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/count-flag.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/count-flag.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/drain-all.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/drain-all.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/drain-until-flag.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/drain-until-flag.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/early-exit-flag.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/early-exit-flag.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/option.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/option.test.ts -------------------------------------------------------------------------------- /test/wrapper/flags/partial-option.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/flags/partial-option.test.ts -------------------------------------------------------------------------------- /test/wrapper/merge/help-sub.output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/merge/help-sub.output.txt -------------------------------------------------------------------------------- /test/wrapper/merge/help.output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/merge/help.output.txt -------------------------------------------------------------------------------- /test/wrapper/merge/help.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/merge/help.test.ts -------------------------------------------------------------------------------- /test/wrapper/merge/parse-main-command.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/merge/parse-main-command.test.ts -------------------------------------------------------------------------------- /test/wrapper/merge/parse-sub-command.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/merge/parse-sub-command.test.ts -------------------------------------------------------------------------------- /test/wrapper/merge/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/merge/setup.ts -------------------------------------------------------------------------------- /test/wrapper/mixed/help-sub0.output.txt: -------------------------------------------------------------------------------- 1 | DESCRIPTION: 2 | Sub command without flags 3 | -------------------------------------------------------------------------------- /test/wrapper/mixed/help-sub1.output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/help-sub1.output.txt -------------------------------------------------------------------------------- /test/wrapper/mixed/help-sub2.output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/help-sub2.output.txt -------------------------------------------------------------------------------- /test/wrapper/mixed/help.output.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/help.output.txt -------------------------------------------------------------------------------- /test/wrapper/mixed/help.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/help.test.ts -------------------------------------------------------------------------------- /test/wrapper/mixed/parse-main-command.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/parse-main-command.test.ts -------------------------------------------------------------------------------- /test/wrapper/mixed/parse-sub-command.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/parse-sub-command.test.ts -------------------------------------------------------------------------------- /test/wrapper/mixed/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/mixed/setup.ts -------------------------------------------------------------------------------- /test/wrapper/values/choice.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/values/choice.test.ts -------------------------------------------------------------------------------- /test/wrapper/values/finite-number.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/values/finite-number.test.ts -------------------------------------------------------------------------------- /test/wrapper/values/integer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/values/integer.test.ts -------------------------------------------------------------------------------- /test/wrapper/values/text.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/test/wrapper/values/text.test.ts -------------------------------------------------------------------------------- /typecheck/deps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/typecheck/deps.ts -------------------------------------------------------------------------------- /typecheck/from-test/tsfun.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/typecheck/from-test/tsfun.ts -------------------------------------------------------------------------------- /typecheck/from-test/wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/typecheck/from-test/wrapper.ts -------------------------------------------------------------------------------- /typecheck/merge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KSXGitHub/deno-args/HEAD/typecheck/merge.ts --------------------------------------------------------------------------------