We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51cff33 commit 2d4e416Copy full SHA for 2d4e416
1 file changed
src/cli.ts
@@ -61,10 +61,13 @@ const targetPortMatch = (program.target as string).match(
61
);
62
const targetPort: string = targetPortMatch !== null ? targetPortMatch[1] : '';
63
64
-if (!targetPort || isNaN(Number(targetPort))) {
65
- console.log('Did not provide a port number within the target URL.\n');
66
- program.outputHelp();
67
- process.exit();
+if (isNaN(Number(targetPort))) {
+ // Check for implied port numbers
+ if (!program.target.startsWith('http://')) {
+ console.log('Did not provide a port number within the target URL.\n');
68
+ program.outputHelp();
69
+ process.exit();
70
+ }
71
}
72
if (
73
program.target.indexOf('//localhost') !== -1 &&
0 commit comments