Ind.ie is now Small Technology Foundation.
Commit def23b22 authored by Stanley Shyiko's avatar Stanley Shyiko

Closed #2 (dropped support for file://)

parent 05c0d581
......@@ -24,8 +24,8 @@ var debug = !!argv.debug;
var argvValidationError;
if (!url) {
argvValidationError = 'URL must be specified';
} else if (!/^(http|https|file):\/\//.test(url)) {
argvValidationError = 'URL must contain the protocol prefix, e.g. the http:// or file://.';
} else if (!/^(http|https):\/\//.test(url)) {
argvValidationError = 'URL must contain the protocol prefix, e.g. http://';
}
if (argvValidationError) {
yargs.showHelp();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment