use assert_cmd::Command;
use predicates::str::contains;

#[test]
fn help_exits_zero_and_explains_local_ipc_surface() {
    Command::cargo_bin("tsafe-agent")
        .unwrap()
        .arg("--help")
        .assert()
        .success()
        .stdout(contains("tsafe-agent"))
        .stdout(contains("local session agent"))
        .stdout(contains("named pipe or Unix socket"))
        .stdout(contains("does not send telemetry"))
        .stdout(contains("tsafe agent lock"));
}
