mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/exe/mod.rs')
-rw-r--r--src/exe/mod.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/exe/mod.rs b/src/exe/mod.rs
index fcfae12..de92095 100644
--- a/src/exe/mod.rs
+++ b/src/exe/mod.rs
@@ -1,13 +1,11 @@
-pub mod args;
-pub mod print;
+mod args;
+mod draw;
+mod print;
-macro_rules!print_err
-{
- ($err:expr, $($msg:tt)*) =>
- {
+macro_rules! print_err {
+ ($err:expr, $($msg:tt)*) => {
{
use std::error::Error;
-
let err = $err;
eprint!($($msg)*);
eprintln!(": {err}");
@@ -30,8 +28,9 @@ fn main() {
let mut args = std::env::args();
args.next().unwrap(); // path to executable
match args.next() {
- None => eprintln!("Not enough arguments, valid commands are: edit, print"),
+ None => eprintln!("Not enough arguments, valid commands are: draw, print"),
Some(s) if s == "print" => print::main(args, 1),
- Some(s) => eprintln!("Unknown argument {s}, valid commands are: edit, print"),
+ Some(s) if s == "draw" => draw::main(args, 1),
+ Some(s) => eprintln!("Unknown argument {s}, valid commands are: draw, print"),
}
}