Skip to content

Commit 3794b65

Browse files
author
Simon Renoult
committed
doc: update examples
1 parent ab73693 commit 3794b65

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

src/cli.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,22 @@ export default commander
2929
.option("--max [max]", "Exclude results above <max>", parseInt)
3030
.on("--help", () => {
3131
console.log();
32-
console.log(" Examples:");
32+
console.log(
33+
" Examples (using the source code instead of npm published versions):"
34+
);
3335
console.log();
34-
console.log(" $ index.ts /path/to/git/directory");
35-
console.log(" $ index.ts /path/to/git/directory --limit 3");
36-
console.log(" $ index.ts /path/to/git/directory --details");
37-
console.log(" $ index.ts /path/to/git/directory --min 10 --max 50");
36+
console.log(
37+
" $ npm run build && node dist/index.js /path/to/git/directory"
38+
);
39+
console.log(
40+
" $ npm run build && node dist/index.js /path/to/git/directory --limit 3"
41+
);
42+
console.log(
43+
" $ npm run build && node dist/index.js /path/to/git/directory --details"
44+
);
45+
console.log(
46+
" $ npx code-complexity /path/to/git/directory --min 10 --max 50"
47+
);
3848
console.log();
3949
})
4050
.parse(process.argv);

0 commit comments

Comments
 (0)