diff options
-rw-r--r-- | cli/src/main.rs | 4 | ||||
-rw-r--r-- | 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)] |