It will make the getopt command available in your PATH if you've allowed the PATH to be modified when installing Rust. cargo uninstall getopt uninstalls.
Adding getopt library as a dependency
Run this command in a terminal, in your project's directory:
cargo add getopt
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
getopt = "1.1.9"
The getopt library will be automatically available globally.