Refactor: Migrate to clap for CLI argument parsing

The project now uses the `clap` crate for handling command-line
arguments, replacing the previous manual parsing approach. This includes
adding `clap` as a dependency and creating a `Cli` struct to define the
command-line interface. The `main` function has been updated to parse
these arguments and handle file input or direct script evaluation.
This commit is contained in:
Michael Schimmel
2026-02-17 13:35:59 +01:00
parent 3cca0e06c2
commit 97542b5ca4
5 changed files with 181 additions and 14 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
[package]
name = "Ast"
name = "myc"
version = "0.1.0"
edition = "2024"
[dependencies]
eframe = "0.33.3"
lazy_static = "1.4.0"
clap = { version = "4.5", features = ["derive"] }