blob: 452aa2fdf372cd3693a57194a777d5a041ec147b [file] [log] [blame] [edit]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_FIDL_FIDLC_FIX_COMMAND_LINE_OPTIONS_H_
#define TOOLS_FIDL_FIDLC_FIX_COMMAND_LINE_OPTIONS_H_
#include <lib/cmdline/status.h>
#include <optional>
#include <string>
#include <vector>
namespace fidl::fix {
struct CommandLineOptions {
std::string fix;
std::vector<std::string> deps;
std::vector<std::string> experiments;
};
// Parses the given command line into options and params.
//
// Returns an error if the command-line is badly formed. In addition, --help
// text will be returned as an error.
cmdline::Status ParseCommandLine(int argc, const char* argv[], CommandLineOptions* options,
std::vector<std::string>* params);
// Returns the fidl-fix usage string.
std::string Usage(const std::string& argv0);
} // namespace fidl::fix
#endif // TOOLS_FIDL_FIDLC_FIX_COMMAND_LINE_OPTIONS_H_