fix: optional parameter before required

This commit is contained in:
anatawa12 2023-01-24 12:34:31 +09:00
commit 2b02ef68f4
No known key found for this signature in database
GPG key ID: 9CA909848B8E4EA6
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ Open Source command line interface of VRChat Package Manager.
- [x] `vrc-get install [pkg] [version]`
- [x] `vrc-get repo list`
- [x] `vrc-get repo add [NAME] <url>`
- [x] `vrc-get repo add <url> [NAME]`
- [x] `vrc-get repo remove <name or url>`
- [x] `vrc-get repo cleanup`
- [x] `vrc-get repo packages <NAME|url>`

View file

@ -130,12 +130,12 @@ impl RepoList {
/// Add remote or local repository
#[derive(Parser)]
pub struct RepoAdd {
/// Name of Package
#[arg()]
name: Option<String>,
/// URL of Package
#[arg()]
path_or_url: String,
/// Name of Package
#[arg()]
name: Option<String>,
}
impl RepoAdd {