From 5047931d17ece196174e15751c1ec4b702845d30 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sat, 24 May 2025 14:18:55 -0400 Subject: [PATCH] Add CLI argument documentation --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 18a8234..da2e8fc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,15 +19,19 @@ pub struct AppSettings { #[command(flatten)] source: Source, + /// The port the app should listen for connections on #[arg(short, long, default_value = "25565")] port: u16, } +/// The source for the world configuration, either an existing world from a peer, a specific seed, or none (which implies a random seed) #[derive(Args)] #[group(required = false, multiple = false)] struct Source { + /// Passing the same seed will always generate the same world #[arg(short, long)] seed: Option, + /// : to a peer's world #[arg(short, long)] connect: Option, }