From 24d9c906868e34a2cddaae93c25dc2ecba755052 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Thu, 5 Oct 2017 15:33:50 +0200 Subject: [PATCH] Rez: create empty / data-only output file if output file name is explicitly given, but no input --- Rez/Rez.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rez/Rez.cc b/Rez/Rez.cc index 2b123bd3ec..d186c3a6ee 100644 --- a/Rez/Rez.cc +++ b/Rez/Rez.cc @@ -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;