As mentioned on #28, command line arguments could use an overhaul, so kicking it off with an upgrade to clap since gumdrop seems to be no longer maintained.
I set this up to break as little as possible existing behaviour, if we are willing to change the version flag to clap default -V from -v it removes the need to have a version arg also.
Output of cargo-aur --help - Old
Usage: /home/nickd/.cargo/bin/cargo-aur [OPTIONS]
Positional arguments:
free Absorbs any extra junk arguments.
Optional arguments:
-h, --help Display this help message.
-v, --version Display the current version of this software.
-o, --output OUTPUT Set a custom output directory (default: target/).
-m, --musl Use the MUSL build target to produce a static binary.
-d, --dryrun Don't actually build anything.
Output of cargo-aur --help - New
Prepare Rust projects to be released on the Arch Linux User Repository.
Usage: cargo-aur [OPTIONS]
Options:
-o, --output <OUTPUT> Set a custom output directory (default: target/)
-m, --musl Use the MUSL build target to produce a static binary
-d, --dryrun Don't actually build anything
-v, --version Print version
-h, --help Print help
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/fosskers/cargo-aur/pull/29
**Author:** [@nick42d](https://github.com/nick42d)
**Created:** 8/3/2024
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (1)
- [`b69f813`](https://github.com/fosskers/cargo-aur/commit/b69f813f591a14bc09f83aa3b4592230aedd63f9) Upgrade to clap for argument parsing
### 📊 Changes
**2 files changed** (+21 additions, -22 deletions)
<details>
<summary>View changed files</summary>
📝 `Cargo.toml` (+1 -1)
📝 `src/main.rs` (+20 -21)
</details>
### 📄 Description
As mentioned on #28, command line arguments could use an overhaul, so kicking it off with an upgrade to `clap` since `gumdrop` seems to be no longer maintained.
I set this up to break as little as possible existing behaviour, if we are willing to change the version flag to clap default `-V` from `-v` it removes the need to have a version arg also.
Output of `cargo-aur --help` - Old
```
Usage: /home/nickd/.cargo/bin/cargo-aur [OPTIONS]
Positional arguments:
free Absorbs any extra junk arguments.
Optional arguments:
-h, --help Display this help message.
-v, --version Display the current version of this software.
-o, --output OUTPUT Set a custom output directory (default: target/).
-m, --musl Use the MUSL build target to produce a static binary.
-d, --dryrun Don't actually build anything.
```
Output of `cargo-aur --help` - New
```
Prepare Rust projects to be released on the Arch Linux User Repository.
Usage: cargo-aur [OPTIONS]
Options:
-o, --output <OUTPUT> Set a custom output directory (default: target/)
-m, --musl Use the MUSL build target to produce a static binary
-d, --dryrun Don't actually build anything
-v, --version Print version
-h, --help Print help
```
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/fosskers/cargo-aur/pull/29
Author: @nick42d
Created: 8/3/2024
Status: ❌ Closed
Base:
master← Head:master📝 Commits (1)
b69f813Upgrade to clap for argument parsing📊 Changes
2 files changed (+21 additions, -22 deletions)
View changed files
📝
Cargo.toml(+1 -1)📝
src/main.rs(+20 -21)📄 Description
As mentioned on #28, command line arguments could use an overhaul, so kicking it off with an upgrade to
clapsincegumdropseems to be no longer maintained.I set this up to break as little as possible existing behaviour, if we are willing to change the version flag to clap default
-Vfrom-vit removes the need to have a version arg also.Output of
cargo-aur --help- OldOutput of
cargo-aur --help- New🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.