From d800319194970f4c10248cebf336f3b69e92b261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Mon, 23 Dec 2019 09:43:49 +0100 Subject: [PATCH] feat(cli): allow multiple values in "--svg-props" and "--replace-attr-values" Closes #233 --- .../cli/src/__snapshots__/index.test.js.snap | 32 +++++++++---------- packages/cli/src/index.js | 13 +++++--- packages/cli/src/index.test.js | 2 +- .../src/__snapshots__/config.test.js.snap | 8 +++++ website/src/pages/docs/cli.mdx | 2 ++ 5 files changed, 36 insertions(+), 21 deletions(-) diff --git a/packages/cli/src/__snapshots__/index.test.js.snap b/packages/cli/src/__snapshots__/index.test.js.snap index fc4fa11e..8140afbd 100644 --- a/packages/cli/src/__snapshots__/index.test.js.snap +++ b/packages/cli/src/__snapshots__/index.test.js.snap @@ -346,12 +346,12 @@ export default SvgFile " `; -exports[`cli should support various args: --svg-props "hidden={true}" 1`] = ` +exports[`cli should support various args: --svg-props "hidden={true},id=hello" 1`] = ` "import React from 'react' function SvgFile(props) { return ( -