$zipcode = new Zipcode(); $zipcode->createBlock($argv[3], $argv[2]); break; case '--restaurant-num-by-block': $zipcode = new Zipcode(); $zipcode->mintcraftBlocks($argv[3], $argv[2]); break; case '--restaurant-unique-value': $zipcode = new Zipcode(); $zipcode->mintcraftUniqueValues($argv[2]); break; case '--diff': $zipcode = new Zipcode(); $zipcode->zipcodesUniqueValues(); $zipcode->locationUnique($argv[2]); //$zipcode->diffZipcodes($argv[2]); $zipcode->diffFileLocation('/usr/share/nginx/cli/SDInvoicesFileCheck/app/cli/test/diff.txt'); break; case '--more-information': $zipcode = new Zipcode(); $zipcode->needMoreInformation('/usr/share/nginx/cli/SDInvoicesFileCheck/app/cli/test/zipcode_unique.txt'); break; case '--count-restaurants': $zipcode = new Zipcode(); $zipcode->readfileLocation($argv[2]); break; case '--help': default: echo "[33m Usage:\n[37m command [options] [arguments]\n\n[46m Options[0m:\n[32m --help [37m Display this help message\n[32m --more-information [37m Takes all zip codes and the divided in blocks with the location.\n[32m --count-restaurants < filepath > [37m Display the number of the restaurants per zip code and save in a file text.\n[32m --all [37m Force ANSI output\n"; break; }