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