jrnl: some add aliases

This commit is contained in:
Schrottkatze 2024-04-23 08:04:03 +02:00
parent aaec1f1f78
commit d425621e01
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc

View file

@ -1,4 +1,3 @@
#![feature(iter_collect_into)]
use clap::{Parser, Subcommand};
use std::{fs, io, path::PathBuf};
@ -24,9 +23,8 @@ struct Cli {
enum Command {
#[command(aliases = ["l", "ls", "list"])]
ListEntries,
Add {
title: Option<String>,
},
#[command(aliases = ["a", "add-entry"])]
Add { title: Option<String> },
}
fn main() -> io::Result<()> {