From 31d7da891fa7e7b8d67471f328565c3be95c44df Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Fri, 20 Jul 2007 10:39:59 -0700 Subject: [PATCH] Do not warn when fewer than two arguments are provided. It used to be that a source and destination had to be provided as the last two arguments. The use of the --dest= option now makes that not true, so don't print a usage message and exit when only a single source is provided. --- scandir.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scandir.cc b/scandir.cc index 325a7c9..dba840d 100644 --- a/scandir.cc +++ b/scandir.cc @@ -617,11 +617,6 @@ int main(int argc, char *argv[]) } } - if (argc < optind + 2) { - usage(argv[0]); - return 1; - } - searches.push_back("."); if (optind == argc) { add_include("."); -- 2.20.1