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:
parent
f0390e00d9
commit
a1cd0e2fdc
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue