diff --git a/src/cli/cli.rs b/src/cli/cli.rs index 8745204..5a0daa2 100644 --- a/src/cli/cli.rs +++ b/src/cli/cli.rs @@ -37,6 +37,8 @@ const DEFAULT_LENGTH: &str = "2^(2-log(2, l))*(60/T)"; pub(super) enum Cli { /// Play a song Play(PlayOpts), + /// Check for typos + Check(PlayOpts), /// Export a song to an audio file or stdout Export(ExportOpts), /// Memo menu for examples and general help about syntax and supported audio formats diff --git a/src/cli/main.rs b/src/cli/main.rs index f1c2e57..1ad981c 100644 --- a/src/cli/main.rs +++ b/src/cli/main.rs @@ -26,6 +26,9 @@ fn main() -> anyhow::Result<()> { debug!("options: {cli:#?}"); use Cli::*; match cli { + Check(opts) => { + parse_and_compile(&opts)?; + } Play(opts) => { let (_stream, stream_handle) = OutputStream::try_default() .context("Failed to find (or use) default audio device")?;