Skip to content

Commit 3c44670

Browse files
author
Matthias Koeppe
committed
./sage -fixdoctests: Issue a deprecation warning when 2 filenames are passed
1 parent 19eee80 commit 3c44670

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/sage-fixdoctests

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ def process_block(block, src_in_lines, file_optional_tags):
307307
# set input and output files
308308
if len(args.filename) == 2 and not args.overwrite and not args.no_overwrite:
309309
inputs, outputs = [args.filename[0]], [args.filename[1]]
310+
print("sage-fixdoctests: When passing two filenames, the second one is taken as an output filename; "
311+
"this is deprecated. To pass two input filenames, use the option --overwrite.")
310312
elif args.no_overwrite:
311313
inputs, outputs = args.filename, [input + ".fixed" for input in args.filename]
312314
else:

0 commit comments

Comments
 (0)