Rez: create empty / data-only output file if output file name is explicitly given, but no input

This commit is contained in:
Wolfgang Thaller 2017-10-05 15:33:50 +02:00
parent bcfcbb90a3
commit 24d9c90686

View File

@ -79,7 +79,9 @@ int main(int argc, const char *argv[])
po::notify(options); po::notify(options);
if(options.count("help") || (!options.count("input") && !options.count("copy"))) if(options.count("help")
|| (!options.count("input") && !options.count("copy")
&& !options.count("output")))
{ {
usage(); usage();
return 0; return 0;