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
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@ int main(int argc, const char *argv[])
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();
return 0;