mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
cli: Add --title and --description edit option
These were missing, causing an `invalid option` error. Signed-off-by: Yorgos Saslis <yorgos.work@proton.me>
This commit is contained in:
@@ -37,7 +37,7 @@ Usage
|
||||
|
||||
rad issue [<option>...]
|
||||
rad issue delete <issue-id> [<option>...]
|
||||
rad issue edit <issue-id> [<option>...]
|
||||
rad issue edit <issue-id> [--title <title>] [--description <text>] [<option>...]
|
||||
rad issue list [--assigned <did>] [--all | --closed | --open | --solved] [<option>...]
|
||||
rad issue open [--title <title>] [--description <text>] [--label <label>] [<option>...]
|
||||
rad issue react <issue-id> [--emoji <char>] [--to <comment>] [<option>...]
|
||||
@@ -229,10 +229,17 @@ impl Args for Options {
|
||||
});
|
||||
}
|
||||
|
||||
// Open options.
|
||||
Long("title") if op == Some(OperationName::Open) => {
|
||||
// Open/Edit options.
|
||||
Long("title")
|
||||
if op == Some(OperationName::Open) || op == Some(OperationName::Edit) =>
|
||||
{
|
||||
title = Some(parser.value()?.to_string_lossy().into());
|
||||
}
|
||||
Long("description")
|
||||
if op == Some(OperationName::Open) || op == Some(OperationName::Edit) =>
|
||||
{
|
||||
description = Some(parser.value()?.to_string_lossy().into());
|
||||
}
|
||||
Short('l') | Long("label") if matches!(op, Some(OperationName::Open)) => {
|
||||
let val = parser.value()?;
|
||||
let name = term::args::string(&val);
|
||||
@@ -246,9 +253,6 @@ impl Args for Options {
|
||||
|
||||
assignees.push(did);
|
||||
}
|
||||
Long("description") if op == Some(OperationName::Open) => {
|
||||
description = Some(parser.value()?.to_string_lossy().into());
|
||||
}
|
||||
|
||||
// State options.
|
||||
Long("closed") if op == Some(OperationName::State) => {
|
||||
|
||||
Reference in New Issue
Block a user