Skip to content

Commit 2013e37

Browse files
committed
Default to current directory
1 parent 38fe2dc commit 2013e37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ program
4646
particularly ESM-related module resolution issues.`
4747
)
4848
.argument(
49-
"<file-or-directory>",
50-
"the packed .tgz or directory containing package.json; required unless --from-npm is set"
49+
"[file-directory-or-package-spec]",
50+
"the packed .tgz, or directory containing package.json with --pack, or package spec with --from-npm"
5151
)
5252
.option("-P, --pack", "run `npm pack` in the specified directory and delete the resulting .tgz file afterwards")
5353
.option("-p, --from-npm", "read from the npm registry instead of a local file")
@@ -60,7 +60,7 @@ particularly ESM-related module resolution issues.`
6060
.option("--emoji, --no-emoji", "whether to use any emojis")
6161
.option("--color, --no-color", "whether to use any colors (the FORCE_COLOR env variable is also available)")
6262
.option("--config-path <path>", "path to config file (default: ./.attw.json)")
63-
.action(async (fileOrDirectory: string) => {
63+
.action(async (fileOrDirectory = ".") => {
6464
const opts = program.opts<Opts>();
6565
await readConfig(program, opts.configPath);
6666
opts.ignoreRules = opts.ignoreRules?.map(

0 commit comments

Comments
 (0)