Пример #1
0
 case '--location-by-block':
     $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 " Usage:\n command [options] [arguments]\n\n Options:\n   --help                                Display this help message\n   --more-information                    Takes all zip codes and the divided in blocks with the location.\n   --count-restaurants  < filepath >     Display the number of the restaurants per zip code and save in a file text.\n   --all                                 Force ANSI output\n";
     break;