//          Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#include <fcppt/strong_typedef_comparison.hpp> // IWYU pragma: keep
#include <fcppt/optional/comparison.hpp> // IWYU pragma: keep
#include <fcppt/options/flag_usage.hpp>
#include <fcppt/options/long_name.hpp>
#include <fcppt/options/optional_help_text.hpp>
#include <fcppt/options/optional_short_name.hpp>
#include <fcppt/config/external_begin.hpp>
#include <utility>
#include <fcppt/config/external_end.hpp>

fcppt::options::flag_usage::flag_usage(
    fcppt::options::long_name _long_name,
    fcppt::options::optional_short_name _short_name,
    fcppt::options::optional_help_text _help_text)
    : long_name_{std::move(_long_name)},
      short_name_{std::move(_short_name)},
      help_text_{std::move(_help_text)}
{
}

fcppt::options::long_name const &fcppt::options::flag_usage::long_name() const
{
  return this->long_name_;
}

fcppt::options::optional_short_name const &fcppt::options::flag_usage::short_name() const
{
  return this->short_name_;
}

fcppt::options::optional_help_text const &fcppt::options::flag_usage::help_text() const
{
  return this->help_text_;
}

bool fcppt::options::flag_usage::operator==(flag_usage const &) const = default;
