--- name: Parse command-line arguments --- The _argument vector_ is the list of arguments passed to the program when it is run. It is available as `Bun.argv`. ```ts#cli.ts console.log(Bun.argv); ``` --- Running this file with arguments results in the following: ```sh $ bun run cli.tsx --flag1 --flag2 value [ '/path/to/bun', '/path/to/cli.ts', '--flag1', '--flag2', 'value' ] ``` --- To parse `argv` into a more useful format, consider using [minimist](https://github.com/minimistjs/minimist) or [commander](https://github.com/tj/commander.js). href='/'>index : astro
Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/smoke/astro.build-main/src/pages/blog/index.astro (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-11Filter out astro from `peerDependencies` in `astro add` (#7620)Gravatar Chris Swithinbank 2-1/+7
2023-07-11[ci] formatGravatar bluwy 1-1/+1
2023-07-11Refactor simple CLI commands (#7619)Gravatar Bjorn Lu 12-115/+123
2023-07-10fix: `astro info` command fallback for package manager (#7618)Gravatar Emanuele Stoppa 2-1/+7
2023-07-10Add CLI startup speed benchmark (#7617)Gravatar Bjorn Lu 5-11/+95
2023-07-10[ci] formatGravatar bluwy 1-1/+1