util/WdtFlags.h (16 lines of code) (raw):

/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <ostream> #include <set> #include <wdt/WdtOptions.h> namespace facebook { namespace wdt { class WdtFlags { public: /** * Set the values of options in WdtOptions from corresponding flags */ static void initializeFromFlags( WdtOptions& options = WdtOptions::getMutable()); static void printOptions( std::ostream& out, const WdtOptions& options = WdtOptions::getMutable()); static std::set<std::string> getUserSpecifiedOptions(); }; } }