Commits

Trevor Basinger committed 38a3e6f

Changed flag and replaced 'or' with double pipes

Comments (0)

Files changed (1)

bin/bitbucket-backup

   opts.banner = "Usage: #{$0} [options] /path/to/backupdir\nUsername and password are required."
 
   # Backup all repos visible to user
-  opts.on("-a", "--all-visible", "Backup all visible repos to user") do
+  opts.on("-a", "--all-repos", "Backup all visible repos to user") do
     options[:all_repos] = true
   end
 
 end
 parser.parse!
 
-if ARGV.empty? or !options[:password] or !options[:username]
+if ARGV.empty? || !options[:password] || !options[:username]
     puts parser.banner
     exit
 end