From f3a8f9c34d95d862fb4d12869a7b31cea592561f Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 5 Jun 2018 08:33:36 -0700 Subject: Options: treat array option -Dopt= and -Dopt=[] as equivalent Currently the former will be parsed as [''], while the latter is parsed as [] in python. This makes for some obnoxious special handling depending on what the user passes. This is even more obnoxious since for string type arguments this doesn't require special handling. --- docs/markdown/snippets/empty-array-opts.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/empty-array-opts.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/empty-array-opts.md b/docs/markdown/snippets/empty-array-opts.md new file mode 100644 index 0000000..6d3b05d --- /dev/null +++ b/docs/markdown/snippets/empty-array-opts.md @@ -0,0 +1,5 @@ +## Array options treat -Dopt= and -Dopt=[] as equivalent + +Prior to this change passing -Dopt= to an array opt would be interpreted as +[''] (an array with an empty string), now -Dopt= is the same as -Dopt=[], an +empty list. -- cgit v1.1