1 /* 2 * Copyright (c) 2016-present, Facebook, Inc. 3 * All rights reserved. 4 * 5 * This source code is licensed under both the BSD-style license (found in the 6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found 7 * in the COPYING file in the root directory of this source tree). 8 */ 9 #include "ErrorHolder.h" 10 #include "Options.h" 11 #include "Pzstd.h" 12 13 using namespace pzstd; 14 main(int argc,const char ** argv)15int main(int argc, const char** argv) { 16 Options options; 17 switch (options.parse(argc, argv)) { 18 case Options::Status::Failure: 19 return 1; 20 case Options::Status::Message: 21 return 0; 22 default: 23 break; 24 } 25 26 return pzstdMain(options); 27 } 28