diff --git a/include/argparse.hpp b/include/argparse.hpp index 96e453d..bece74c 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -194,7 +194,11 @@ public: friend std::ostream& operator<<(std::ostream& stream, const Argument& argument) { std::stringstream nameStream; std::copy(std::begin(argument.mNames), std::end(argument.mNames), std::ostream_iterator(nameStream, " ")); - return stream << nameStream.str() << "\t" << argument.mHelp << "\n"; + stream << nameStream.str() << "\t" << argument.mHelp; + if (argument.mIsRequired) + stream << "[Required]"; + stream << "\n"; + return stream; }