pub fn parse_args() -> Result<Option<Command>>Expand description
Parse CLI arguments from std::env::args().
Returns None if the first argument is not a known subcommand.
Customize: extend this to use clap or another arg parser for a real CLI.
This is intentionally minimal so Soma compiles without extra deps.
ยงCUSTOMIZE: Adding a new subcommand
- Add a variant to
Commandabove. - Add a match arm here to construct it from args.
- Add a dispatch arm in
run()below. - Update
USAGEabove.