diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-21 17:18:00 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-10-25 11:49:10 +0300 |
commit | 05d51df07bdbb051de00a3e1bc8fab13c3092b11 (patch) | |
tree | 2dee4fc1a26a315cba44c8589052af3651f8000d /bdep/utility.txx | |
parent | bdb1c184cc869dbf7d70f4f8fd373f31c9e3f10d (diff) |
Add --progress common option
Diffstat (limited to 'bdep/utility.txx')
-rw-r--r-- | bdep/utility.txx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bdep/utility.txx b/bdep/utility.txx index 86a7b60..12bc06c 100644 --- a/bdep/utility.txx +++ b/bdep/utility.txx @@ -91,7 +91,7 @@ namespace bdep string vl; { const char* o (nullptr); - bool progress (!co.no_progress ()); + bool no_progress (co.no_progress ()); switch (verb) { @@ -111,10 +111,13 @@ namespace bdep ops.push_back (o); if (strcmp (o, "-q") == 0) - progress = true; // No need to suppress (already done with -q). + no_progress = false; // No need to suppress (already done with -q). } - if (!progress) + if (co.progress ()) + ops.push_back ("--progress"); + + if (no_progress) ops.push_back ("--no-progress"); } @@ -189,7 +192,7 @@ namespace bdep string vl; { const char* o (nullptr); - bool progress (!co.no_progress ()); + bool no_progress (co.no_progress ()); switch (verb) { @@ -209,10 +212,13 @@ namespace bdep ops.push_back (o); if (strcmp (o, "-q") == 0) - progress = true; // No need to suppress (already done with -q). + no_progress = false; // No need to suppress (already done with -q). } - if (!progress) + if (co.progress ()) + ops.push_back ("--progress"); + + if (no_progress) ops.push_back ("--no-progress"); } |