borgo
borgo copied to clipboard
Added `clap` crate for CLI
// TODO use a proper parsing lib
As per comment found in main this PR adds the clap crate to parse the arguments and create a more standard CLI.
The behaviour is the same as before, but in the future I would personally change/move the test command into some internal thing, instead of having it in the "main" binary.
It will be nice to have a borgo build, and eventually a borgo test that will execute some Borgo "test", moving the "compiler" test to something else. 😄
Since the project is named compiler that is the default name. borgo would be better.
Since the project is named compiler that is the default name. borgo would be better.
My man, try smashing this into the Cargo.toml:
[[bin]]
name = "borgo"
path = "src/main.rs"
Since the project is named compiler that is the default name. borgo would be better.
My man, try smashing this into the
Cargo.toml:[[bin]] name = "borgo" path = "src/main.rs"
Yep, I know, but thanks for pointing this out. I just didn't want to make this "breaking" change.
What's your thought about this @alpacaaa? Can we do this?