Add --version command line argument

This commit is contained in:
Matthias Schiffer 2023-08-21 13:19:00 +02:00
parent 003b48951b
commit 1616f3b2e2
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
3 changed files with 3 additions and 0 deletions

View file

@ -10,6 +10,7 @@ use clap::Parser;
/// Dump a Minecraft NBT data file in a human-readable format /// Dump a Minecraft NBT data file in a human-readable format
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[command(version)]
struct Args { struct Args {
/// Filename to dump /// Filename to dump
file: PathBuf, file: PathBuf,

View file

@ -10,6 +10,7 @@ use clap::Parser;
/// Dump a Minecraft NBT region file in a human-readable format /// Dump a Minecraft NBT region file in a human-readable format
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[command(version)]
struct Args { struct Args {
/// Filename to dump /// Filename to dump
file: PathBuf, file: PathBuf,

View file

@ -20,6 +20,7 @@ use tile_renderer::TileRenderer;
/// Generate map tiles from Minecraft save data /// Generate map tiles from Minecraft save data
#[derive(Debug, Parser)] #[derive(Debug, Parser)]
#[command(version)]
pub struct Args { pub struct Args {
/// Number of parallel threads to use for processing /// Number of parallel threads to use for processing
/// ///