CLI formatting tweak.
authorCarl Hetherington <cth@carlh.net>
Thu, 7 Jul 2016 14:27:04 +0000 (15:27 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 7 Jul 2016 14:27:04 +0000 (15:27 +0100)
src/tools/dcpomatic_cli.cc

index eaf868fcaecd548ef9a0e75356ff8d85dfdc6bf9..1a0ffda0021ad0b069d10d9a5dce75927a74272e 100644 (file)
@@ -317,7 +317,11 @@ main (int argc, char* argv[])
 
                BOOST_FOREACH (shared_ptr<Job> i, jobs) {
                        if (progress) {
-                               cout << i->name() << "; " << i->sub_name() << ": ";
+                               cout << i->name();
+                               if (!i->sub_name().empty()) {
+                                       cout << "; " << i->sub_name();
+                               }
+                               cout << ": ";
 
                                if (i->progress ()) {
                                        cout << i->status() << "                            \n";