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, }