From 4574a022a79f355a00e6c454249a8f3e3634776a8e66ae6bf5fe1eefb2ef460b Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sat, 31 Oct 2026 17:46:19 -0400 Subject: [PATCH] Permit path parameters. --- cudir.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ),