diff --git a/src/main.rs b/src/main.rs index 44dc1ca..842f824 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,6 +76,7 @@ fn main() { return; } + // This will be required for all subcommands from here on if get_var("kak_command_fifo") .and(get_var("kak_response_fifo")) .is_err() diff --git a/src/set.rs b/src/set.rs index f817249..d6f9c61 100644 --- a/src/set.rs +++ b/src/set.rs @@ -289,6 +289,10 @@ fn to_ordered_counts(options: &Options, sels: Vec) -> LinkedHashMap( operation: &Operation, left_keys: &LinkedHashSet<&'a Selection>, @@ -317,6 +321,9 @@ fn key_set_operation<'a>( } } +/// Parses the arguments used for set manipulation +/// +/// Arguments can be given like `a-b`, `a - b` fn parse_arguments(args: &[String]) -> Result<(Register, Operation, Register), KakError> { let args = if args.len() == 1 { // They gave us something like "a-b" or "c?d" diff --git a/src/sort.rs b/src/sort.rs index b47cceb..b2fd0ed 100644 --- a/src/sort.rs +++ b/src/sort.rs @@ -10,7 +10,7 @@ pub struct Options { #[clap( short = 's', long, - help = "Optional register for using subselection ma tching" + help = "Optional register for using subselection matching" )] subselections_register: Option, // TODO: Can we invert a boolean? This name is terrible