Created
August 9, 2023 14:15
-
-
Save christophemarois/4185442371dffc118e6225405eee5446 to your computer and use it in GitHub Desktop.
Native parsing for CLI args in node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { parseArgs } from 'node:util' | |
const args = parseArgs({ | |
options: { env: { type: 'string' }, dryRun: { type: 'boolean' } }, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment