Skip to content

Commit

Permalink
Deprecate passing more than one value to --report
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Pennycook committed Mar 1, 2024
1 parent b86226c commit ef4773e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/codebasin
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ def main():
"--dump will be removed in a future release.",
DeprecationWarning,
)
if len(args.reports) > 1:
warnings.warn(
"Passing more than one value to --report (-R) is deprecated.",
DeprecationWarning,
)

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

0 comments on commit ef4773e

Please sign in to comment.