diff --git a/cudir.cc b/cudir.cc index 7158b8c..986240a 100644 --- a/cudir.cc +++ b/cudir.cc @@ -70,9 +70,10 @@ trimYear( const int year ) int main( const int argcnt, const char *const argvec[] ) { - std::filesystem::path where="./"; const auto args= Alepha::handleOptions( argcnt, argvec ); + std::filesystem::path where= args.empty() ? "./" : args.at( 0 ); + const auto entries= getEntries( where ); const auto widest= std::max_element( begin( entries ), end( entries ),