Skip to content

Commit cf2b0ea

Browse files
author
Josua Rieder
committed
Change order of arg/opt in help screen
1 parent 83c1208 commit cf2b0ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ProgramOptions.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,15 +1939,15 @@ namespace po {
19391939
};
19401940
PROGRAMOPTIONS_ASSERT( object.wellformed(), "cannot print an ill-formed parser" );
19411941
stream << "Usage:\n " << object.m_program_name;
1942+
if( !object.m_options.empty() )
1943+
stream << " [options]";
19421944
const auto unnamed = object.m_options.find( "" );
19431945
if( unnamed != object.m_options.end() ) {
19441946
stream << " [argument";
19451947
if( unnamed->second.is_multi() )
19461948
stream << "s...";
19471949
stream << ']';
19481950
}
1949-
if( !object.m_options.empty() )
1950-
stream << " [options]";
19511951
stream << "\nAvailable options:\n";
19521952
bool any_abbreviations = false;
19531953
std::size_t max_verbose = 0;

0 commit comments

Comments
 (0)