Skip to content

Commit 6c6a3e5

Browse files
committed
Just one typo is all it takes to render a CLI flag useless
1 parent 45a4d72 commit 6c6a3e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spidergram",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "Structural analysis tools for complex web sites",
55
"main": "./dist/index.js",
66
"exports": "./dist/index.js",

src/cli/commands/urls.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class Urls extends SgCommand {
1414
'<%= config.bin %> <%= command.id %>',
1515
'<%= config.bin %> <%= command.id %> urls.txt',
1616
'<%= config.bin %> <%= command.id %> --preset=collapse',
17-
"<%= config.bin %> <%= command.id %> --depth=5 --maxChildren=10 --highlight='**/*.pdf'",
17+
"<%= config.bin %> <%= command.id %> --depth=5 --children=10 --highlight='**/*.pdf'",
1818
];
1919

2020
static flags = {
@@ -173,7 +173,7 @@ export default class Urls extends SgCommand {
173173
if (hosts.size > 1) {
174174
summary['Unique Hosts'] = flags.hosts ? [...hosts] : [...hosts].length;
175175
}
176-
if (filteredUrls.length > 0) {
176+
if (rawUrls.length - filteredUrls.length > 0) {
177177
summary['Hidden URLs'] = rawUrls.length - filteredUrls.length;
178178
}
179179
if (urls.unparsable.size) {
@@ -194,7 +194,7 @@ export default class Urls extends SgCommand {
194194

195195
const renderOptions: HierarchyTools.RenderOptions = {
196196
preset: flags.preset,
197-
maxChildren: flags.childern,
197+
maxChildren: flags.children,
198198
maxDepth: flags.depth,
199199
label: item => {
200200
if (item instanceof HierarchyTools.UrlHierarchyItem) {

0 commit comments

Comments
 (0)