main.cpp 646 B

123456789101112131415161718192021222324252627
  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. using namespace pzstd;
  13. int main(int argc, const char** argv) {
  14. Options options;
  15. switch (options.parse(argc, argv)) {
  16. case Options::Status::Failure:
  17. return 1;
  18. case Options::Status::Message:
  19. return 0;
  20. default:
  21. break;
  22. }
  23. return pzstdMain(options);
  24. }