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

Commit

Permalink
No option does no longer exist, it prints help then.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganneff committed Apr 25, 2022
1 parent 77a6ba2 commit e92a4bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tm"
description = "tmux helper"
version = "0.6.0"
version = "0.6.1"
edition = "2021"
authors = ["Jörg Jaspert <[email protected]>"]
license = "BSD-2-Clause"
Expand Down
9 changes: 2 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,15 +1153,9 @@ mod tests {
let mut session = Session {
..Default::default()
};
// No option
let mut cli = Cli::parse_from("tm".split_whitespace());
assert_eq!(
cli.find_session_name(&mut session).unwrap(),
"Unhandled_command_so_unknown_session_name".to_string(),
);

// Just a session
cli = Cli::parse_from("tm foo".split_whitespace());
let mut cli = Cli::parse_from("tm foo".split_whitespace());
assert_eq!(
cli.find_session_name(&mut session).unwrap(),
"foo".to_string()
Expand Down Expand Up @@ -1283,6 +1277,7 @@ mod tests {
"ms_morehost_testhosts".to_string()
);
}

#[test]
#[allow(clippy::bool_assert_comparison)]
fn test_cmdline_ls() {
Expand Down

0 comments on commit e92a4bb

Please sign in to comment.