mod common;
use anyhow::Result;
use assert_cmd::{cargo_bin, Command};
use common::create_test_files;
use predicates::str::contains;
#[test]
fn test_help_work_for_invalid_sgconfig() -> Result<()> {
let dir = create_test_files([("sgconfig.yml", "invalid")])?;
Command::new(cargo_bin!())
.current_dir(dir.path())
.args(["help"])
.assert()
.success()
.stdout(contains("ast-grep"));
Ok(())
}