ocrd workspace init with metsflag creates 2 mets files
**Expected Bahavior**

When one issues the follwing cli command 

`ocr workspace -M foo.xml init .`

only one Metsfile with name `foo.xml`shall be created.


**Actual Behaviour**

When one issues the follwing cli command 

`ocr workspace -M foo.xml init .`

2 files are created in the new workspace, one called `foo.xml` and a `mets.xml`, both having the same content.

**Version**
ocrd==2.2.2

**Files**

[ocrd-workspace-init-files.zip](https://github.com/OCR-D/core/files/4086137/ocrd-workspace-init-files.zip)



diff --git a/ocrd/ocrd/resolver.py b/ocrd/ocrd/resolver.py
index 63fdd396..5c4aad80 100644
--- a/ocrd/ocrd/resolver.py
+++ b/ocrd/ocrd/resolver.py
@@ -175,4 +175,4 @@ class Resolver():
         log.info("Writing METS to %s", mets_path)
         mets_path.write_bytes(mets.to_xml(xmllint=True))
 
-        return Workspace(self, directory, mets)
+        return Workspace(self, directory, mets, mets_basename=mets_basename)
diff --git a/tests/cli/test_workspace.py b/tests/cli/test_workspace.py
index adda41f2..923c3bba 100644
--- a/tests/cli/test_workspace.py
+++ b/tests/cli/test_workspace.py
@@ -264,5 +264,13 @@ class TestCli(TestCase):
                 self.assertEqual(full_vs_copied.left_only, [])
                 self.assertEqual(full_vs_copied.right_only, [])
 
+    def test_mets_basename(self):
+        with TemporaryDirectory() as tempdir:
+            with pushd_popd(tempdir):
+                result = self.runner.invoke(workspace_cli, ['-M', 'foo.xml', 'init', '.'])
+                self.assertEqual(result.exit_code, 0)
+                self.assertTrue(exists('foo.xml'))
+                self.assertFalse(exists('mets.xml'))
+
 if __name__ == '__main__':
     main()
['tests/cli/test_workspace.py', 'ocrd/ocrd/resolver.py']