Skip to content

Commit ef4773e

Browse files
committed
Deprecate passing more than one value to --report
We previously decided to remove the ability for --platform (-p) to accept multiple values due to the potential for ambiguous command lines. For consistency, --report (-R) should not accept multiple values either. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent b86226c commit ef4773e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/codebasin

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ def main():
160160
"--dump will be removed in a future release.",
161161
DeprecationWarning,
162162
)
163+
if len(args.reports) > 1:
164+
warnings.warn(
165+
"Passing more than one value to --report (-R) is deprecated.",
166+
DeprecationWarning,
167+
)
163168

164169
# Determine the root directory based on the -S and -r flags.
165170
rootpath = None

0 commit comments

Comments
 (0)