From ea9a59c84ad6c13b8023ef85b6694c43dd559bff Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 5 Apr 2025 12:12:02 +0200 Subject: cli: add by default --- cli/src/main.rs | 4 ++-- import/src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 9cf5e3a..d7bb187 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -35,7 +35,7 @@ struct Add { #[arg(short = 'A', long)] announce: bool, #[arg(short, long)] - add: bool, + no_add: bool, #[arg(short, long)] disown: bool, } @@ -64,7 +64,7 @@ fn action_add(args: Add) -> Result<()> { if args.announce { Packet::AnnouncePrefab(p.clone()).write(&mut sock)?; } - if args.add { + if !args.no_add { let ob = Object::new(); Packet::Add(ob, p.clone()).write(&mut sock)?; if args.disown { diff --git a/import/src/main.rs b/import/src/main.rs index cfc6f92..f42b598 100644 --- a/import/src/main.rs +++ b/import/src/main.rs @@ -68,10 +68,10 @@ pub struct Args { push: bool, /// Remove all other object from the world - #[arg(short, long)] + #[arg(long)] clear: bool, /// Add the object to the world - #[arg(short, long)] + #[arg(long)] add: bool, /// Transcode all textures to WebP #[arg(short, long)] -- cgit v1.2.3-70-g09d2