Commit def23b22 authored by Stanley Shyiko's avatar Stanley Shyiko
Browse files

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

parent 05c0d581
...@@ -24,8 +24,8 @@ var debug = !!argv.debug; ...@@ -24,8 +24,8 @@ var debug = !!argv.debug;
var argvValidationError; var argvValidationError;
if (!url) { if (!url) {
argvValidationError = 'URL must be specified'; argvValidationError = 'URL must be specified';
} else if (!/^(http|https|file):\/\//.test(url)) { } else if (!/^(http|https):\/\//.test(url)) {
argvValidationError = 'URL must contain the protocol prefix, e.g. the http:// or file://.'; argvValidationError = 'URL must contain the protocol prefix, e.g. http://';
} }
if (argvValidationError) { if (argvValidationError) {
yargs.showHelp(); 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