Closed
Description
Description of bug / unexpected behavior
When using manim render --help
, you can see --save_last_frame
appearing twice, once marked as deprecated:
-s, --save_last_frame
...
-s, --save_last_frame Save last frame as png (Deprecated).
This is also visible i n reference manual.
Expected behavior
The option appears exactly once
How to reproduce the issue
Code for reproducing the problem
> manim render --help | grep 'save_last_frame'
Additional media files
Images/GIFs
Logs
Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR
System specifications
System Details
- OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)):
- RAM:
- Python version (
python/py/python3 --version
): - Installed modules (provide output from
pip list
):
PASTE HERE
LaTeX details
- LaTeX distribution (e.g. TeX Live 2020):
- Installed LaTeX packages:
FFMPEG
Output of ffmpeg -version
:
PASTE HERE
Additional comments
This is probably a code cleanup issue, as you can clearly see the option being declared twice in render_options.py
:
# line 61
option("-s", "--save_last_frame", is_flag=True, default=None),
# line 125:131
option(
"-s",
"--save_last_frame",
default=None,
is_flag=True,
help="Save last frame as png (Deprecated).",
),
I can create a PR to remove one of them, just need info which one should be removed - the first one without help, or the second one marking it deprecated (easiest to just remove the "deprecated" keyword as it's formated nicely, and get rid of the first one).
Should I also report it as a bug in cloup that it doesn't check for duplicates?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🆕 New