Skip to content

Commit

Permalink
chore: change CLI commands
Browse files Browse the repository at this point in the history
  • Loading branch information
HideBa committed Jan 12, 2025
1 parent cff1d2e commit 17ab495
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct Cli {
#[derive(Subcommand)]
enum Commands {
/// Convert CityJSON to FCB
Serialize {
Ser {
/// Input file (use '-' for stdin)
#[arg(short, long)]
input: String,
Expand All @@ -33,7 +33,7 @@ enum Commands {
},

/// Convert FCB to CityJSON
Deserialize {
Deser {
/// Input file (use '-' for stdin)
#[arg(short, long)]
input: String,
Expand Down Expand Up @@ -180,8 +180,8 @@ fn main() -> Result<()> {
let cli = Cli::parse();

match cli.command {
Commands::Serialize { input, output } => serialize(&input, &output),
Commands::Deserialize { input, output } => deserialize(&input, &output),
Commands::Ser { input, output } => serialize(&input, &output),
Commands::Deser { input, output } => deserialize(&input, &output),
Commands::Info { input } => show_info(input),
}
}

0 comments on commit 17ab495

Please sign in to comment.