Repository: ManimCommunity/manim

Issue:
`--save_last_frame` appears twice in options
## Description of bug / unexpected behavior
<!-- Add a clear and concise description of the problem you encountered. -->

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](https://docs.manim.community/en/stable/guides/configuration.html#:~:text=webm%7Cmov%5D%0A%20%20%2Ds%2C%20%2D%2D-,save_last_frame,-%2Dq%2C%20%2D%2Dquality%20%5Bl).

## Expected behavior
<!-- Add a clear and concise description of what you expected to happen. -->

The option appears exactly once

## How to reproduce the issue
<!-- Provide a piece of code illustrating the undesired behavior. -->

<details><summary>Code for reproducing the problem</summary>

```bash
> manim render --help | grep 'save_last_frame'
```

</details>


## Additional media files
<!-- Paste in the files manim produced on rendering the code above. -->

<details><summary>Images/GIFs</summary>

<!-- PASTE MEDIA HERE -->

</details>


## Logs
<details><summary>Terminal output</summary>
<!-- Add "-v DEBUG" when calling manim to generate more detailed logs -->

```
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR
```

<!-- Insert screenshots here (only when absolutely necessary, we prefer copy/pasted output!) -->

</details>


## System specifications

<details><summary>System Details</summary>

- 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
```
</details>

<details><summary>LaTeX details</summary>

+ LaTeX distribution (e.g. TeX Live 2020):
+ Installed LaTeX packages:
<!-- output of `tlmgr list --only-installed` for TeX Live or a screenshot of the Packages page for MikTeX -->
</details>

<details><summary>FFMPEG</summary>

Output of `ffmpeg -version`:

```
PASTE HERE
```
</details>

## Additional comments
<!-- Add further context that you think might be relevant for this issue here. -->

This is probably a code cleanup issue, as you can clearly see the option being declared twice in [`render_options.py`](https://github.com/ManimCommunity/manim/blob/main/manim/cli/render/render_options.py):

```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](https://github.com/janLuke/cloup) that it doesn't check for duplicates?


Discussion:
It is not really a bug that it doesn't check for duplicates. If you add the same command twice then it's not really cloups fault.

Just remove one of them and see if it still works as intended. If it does then make a PR!
The `-s` flag has been deprecated long enough, it should be removed.

Resolving patch:
diff --git a/manim/cli/render/render_options.py b/manim/cli/render/render_options.py
--- a/manim/cli/render/render_options.py
+++ b/manim/cli/render/render_options.py
@@ -57,7 +57,13 @@ def validate_resolution(ctx, param, value):
         type=Choice(["png", "gif", "mp4", "webm", "mov"], case_sensitive=False),
         default=None,
     ),
-    option("-s", "--save_last_frame", is_flag=True, default=None),
+    option(
+        "-s",
+        "--save_last_frame",
+        default=None,
+        is_flag=True,
+        help="Render and save only the last frame of a scene as a PNG image.",
+    ),
     option(
         "-q",
         "--quality",
@@ -121,13 +127,6 @@ def validate_resolution(ctx, param, value):
         is_flag=True,
         help="Save section videos in addition to movie file.",
     ),
-    option(
-        "-s",
-        "--save_last_frame",
-        default=None,
-        is_flag=True,
-        help="Save last frame as png (Deprecated).",
-    ),
     option(
         "-t",
         "--transparent",


Test patch: