Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix error when no arguments are passed to downstagram

  • Loading branch information...
commit 62b28a5e6a569d5a6a1eb134ad52ff9c2fd39919 1 parent 7d3baae
@rogeriopvl authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/downstagram
View
5 bin/downstagram
@@ -22,6 +22,11 @@ if (!config.auth.access_token) {
var keepMetadata = false;
var first = args.shift();
+ if (!first) {
+ showHelp();
+ process.exit(0);
+ }
+
if (first.indexOf('-') === 0) {
if (first === '-v' || first === '--version') {
showVersion();
Please sign in to comment.
Something went wrong with that request. Please try again.