cli: Change `reaction` flag to `emoji`

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex 2022-11-28 15:52:43 +00:00 committed by Alexis Sellier
parent 73b7db10fe
commit 1e4cff4a0f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ impl Args for Options {
reason: CloseReason::Solved,
});
}
Long("reaction") if op == Some(OperationName::React) => {
Long("emoji") if op == Some(OperationName::React) => {
if let Some(emoji) = parser.value()?.to_str() {
reaction =
Some(Reaction::from_str(emoji).map_err(|_| anyhow!("invalid emoji"))?);