diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-05 22:00:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-31 14:37:41 +0300 |
commit | 064536ef079051dd0af53b7f311bef4aa4670ccb (patch) | |
tree | 741e629ab6644e853c92e254702b269bf771fee7 /tests/manifest-roundtrip/driver.cxx | |
parent | dfc1d78fd95694b65ce80be90970be9ef305f973 (diff) |
Serialize manifest using new-fashioned multi-line mode introducer (as in 'foo:<newline>\<newline>')
Diffstat (limited to 'tests/manifest-roundtrip/driver.cxx')
-rw-r--r-- | tests/manifest-roundtrip/driver.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/manifest-roundtrip/driver.cxx b/tests/manifest-roundtrip/driver.cxx index c63a729..2aa4120 100644 --- a/tests/manifest-roundtrip/driver.cxx +++ b/tests/manifest-roundtrip/driver.cxx @@ -19,9 +19,6 @@ using namespace butl; // // Round-trip a manifest reading it from stdin and printing to stdout. // -// -m -// Serialize multi-line manifest values using the v2 form. -// // -s // Split values into the value/comment pairs and merge them back before // printing. @@ -30,17 +27,16 @@ int main (int argc, const char* argv[]) try { - bool multiline_v2 (false); bool split (false); for (int i (1); i != argc; ++i) { string v (argv[i]); - if (v == "-m") - multiline_v2 = true; - else if (v == "-s") + if (v == "-s") split = true; + else + assert (false); } // Read/write in binary mode. @@ -53,8 +49,7 @@ try manifest_serializer s (cout, "stdout", false /* long_lines */, - {} /* filter */, - multiline_v2); + {} /* filter */); for (bool eom (true), eos (false); !eos; ) { |