kuknos-xdr-tmp 20.0.0

Stellar XDR types, encoding, and decoding.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::Error;
use std::env;
use stellar_xdr::cli;

fn main() {
    if let Err(e) = cli::run(env::args_os()) {
        match e {
            cli::Error::Clap(e) => e.exit(),
            cli::Error::Guess(_) | cli::Error::Decode(_) | cli::Error::Encode(_) => {
                Error::raw(clap::error::ErrorKind::ValueValidation, e).exit()
            }
        }
    }
}