Consider prompting the user during uninstall
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
**Is your feature request related to a problem? Please describe.**
A WSL distro is installed with
```
wsl --install Ubuntu-22.04
```
However, it is uninstalled with
```
wsl --unregister Ubuntu-22.04
```
If you accidentally type:
```
wsl --uninstall Ubuntu-22.04
```
You're in for an exciting day.
**Describe the solution you'd like**
If extra arguments are provided, the command should error.
> You provided a distro to WSL uninstallation, perhaps you meant --unregister?
**Describe alternatives you've considered**
- Prompt the user to make sure this is the intended action
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the argument parsing and handling for `wsl --uninstall`, then compare it with the `--unregister` command shown in the issue. Done means that supplying a distro to `--uninstall` no longer proceeds silently and instead produces the requested error or confirmation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100