stellar-strkey 1.0.0

Encode and decode strkeys for Stellar.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::Error;
use std::env;
use stellar_strkey::cli;

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