Permit path parameters.

This commit is contained in:
2026-10-31 17:46:19 -04:00
parent 95e8c0f732
commit 4574a022a7
+2 -1
View File
@@ -70,9 +70,10 @@ trimYear( const int year )
int int
main( const int argcnt, const char *const argvec[] ) main( const int argcnt, const char *const argvec[] )
{ {
std::filesystem::path where="./";
const auto args= Alepha::handleOptions( argcnt, argvec ); const auto args= Alepha::handleOptions( argcnt, argvec );
std::filesystem::path where= args.empty() ? "./" : args.at( 0 );
const auto entries= getEntries( where ); const auto entries= getEntries( where );
const auto widest= std::max_element( begin( entries ), end( entries ), const auto widest= std::max_element( begin( entries ), end( entries ),