Skip to content

Commit e7603a4

Browse files
committed
chore: clarify that --bare & --force are *supplementary* options to the feature flags
1 parent 2d77ded commit e7603a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ async function init() {
8484
// --playwright
8585
// --eslint
8686
// --eslint-with-prettier (only support prettier through eslint for simplicity)
87-
// --force (for force overwriting)
88-
// --bare (for a barebone template)
87+
// in addition to the feature flags, you can also pass the following options:
88+
// --bare (for a barebone template without example code)
89+
// --force (for force overwriting without confirming)
8990

9091
const args = process.argv.slice(2)
9192

scripts/snapshot.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ flagCombinations = flagCombinations
8888
denylist.every((flag) => combination.includes(flag)),
8989
),
9090
)
91+
// `--bare` is a supplementary flag and should not be used alone
9192
.filter((combination) => !(combination.length === 1 && combination[0] === 'bare'))
9293

9394
const bin = path.posix.relative('../playground/', '../outfile.cjs')

0 commit comments

Comments
 (0)