From: Michael Vrable Date: Fri, 20 Jul 2007 17:39:59 +0000 (-0700) Subject: Do not warn when fewer than two arguments are provided. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=31d7da891fa7e7b8d67471f328565c3be95c44df;p=cumulus.git 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. --- 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(".");