diff --git a/src/libutil/args.cc b/src/libutil/args.cc index 348f1bca0..35686a8aa 100644 --- a/src/libutil/args.cc +++ b/src/libutil/args.cc @@ -29,8 +29,7 @@ void Args::removeFlag(const std::string & longName) void Completions::add(std::string completion, std::string description) { - // strip whitespace/empty lines from the front of the description - description.erase(0, description.find_first_not_of(" \t\n")); + description = trim(description); // ellipsize overflowing content on the back of the description auto end_index = description.find_first_of(".\n"); if (end_index != std::string::npos) {