@@ -353,7 +353,7 @@ namespace slic {
353353 #define ANSI_BOLDLINE ANSI_BOLD ANSI_UNDERLINE
354354
355355 if constexpr (requires { T::Description; }) {
356- std::cout << T::Description << ' \n ' ;
356+ std::cout << T::Description << " \n\n " ;
357357 }
358358
359359 std::cout << ANSI_BOLDLINE " Usage:" ANSI_RESET " " << m_programName;
@@ -362,8 +362,8 @@ namespace slic {
362362 std::cout << " [OPTIONS]" ;
363363 }
364364
365- forEachArg ([]( auto const & arg) {
366- if constexpr (arg. isOptional ()) {
365+ forEachArg ([]< typename A>(A const & arg) {
366+ if constexpr (A:: isOptional ()) {
367367 std::cout << " [" << arg.name () << ' ]' ;
368368 } else {
369369 std::cout << " <" << arg.name () << ' >' ;
@@ -391,14 +391,14 @@ namespace slic {
391391 if constexpr (optionCount () > 0 ) {
392392 std::cout << " \n " ANSI_BOLDLINE " Options:" ANSI_RESET " \n " ;
393393
394- forEachOption ([]( auto const & opt) {
394+ forEachOption ([]< typename O>(O const & opt) {
395395 if (opt.altName ().empty ()) {
396396 std::cout << " " ANSI_BOLD << opt.name () << ANSI_RESET ;
397397 } else {
398398 std::cout << " " ANSI_BOLD << opt.altName () << " , " << opt.name () << ANSI_RESET ;
399399 }
400400
401- if constexpr (opt. needsValue ()) {
401+ if constexpr (O:: needsValue ()) {
402402 std::cout << " <value>" ;
403403 }
404404
@@ -589,4 +589,4 @@ namespace slic {
589589 };
590590} // namespace slic
591591
592- #endif // SLIC_ARG_PARSER_HPP
592+ #endif // SLIC_ARG_PARSER_HPP
0 commit comments