Skip to content
This repository was archived by the owner on Dec 22, 2024. It is now read-only.

Commit e92a4bb

Browse files
committed
No option does no longer exist, it prints help then.
1 parent 77a6ba2 commit e92a4bb

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tm"
33
description = "tmux helper"
4-
version = "0.6.0"
4+
version = "0.6.1"
55
edition = "2021"
66
authors = ["Jörg Jaspert <[email protected]>"]
77
license = "BSD-2-Clause"

Diff for: src/main.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -1153,15 +1153,9 @@ mod tests {
11531153
let mut session = Session {
11541154
..Default::default()
11551155
};
1156-
// No option
1157-
let mut cli = Cli::parse_from("tm".split_whitespace());
1158-
assert_eq!(
1159-
cli.find_session_name(&mut session).unwrap(),
1160-
"Unhandled_command_so_unknown_session_name".to_string(),
1161-
);
11621156

11631157
// Just a session
1164-
cli = Cli::parse_from("tm foo".split_whitespace());
1158+
let mut cli = Cli::parse_from("tm foo".split_whitespace());
11651159
assert_eq!(
11661160
cli.find_session_name(&mut session).unwrap(),
11671161
"foo".to_string()
@@ -1283,6 +1277,7 @@ mod tests {
12831277
"ms_morehost_testhosts".to_string()
12841278
);
12851279
}
1280+
12861281
#[test]
12871282
#[allow(clippy::bool_assert_comparison)]
12881283
fn test_cmdline_ls() {

0 commit comments

Comments
 (0)