style: format
This commit is contained in:
@@ -9,6 +9,7 @@ use crate::engine_plugin_credit::CreditContractTransferParameters;
|
||||
pub struct CommandImpl;
|
||||
impl Command for CommandImpl {
|
||||
fn name(&self) -> &str { "transfer" }
|
||||
|
||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||
SubCommand::with_name(self.name()).about("Transfer credit contract subcommand")
|
||||
.arg(Arg::with_name("name").long("name").short("n").required(true).takes_value(true).help("Contract name"))
|
||||
@@ -16,6 +17,7 @@ impl Command for CommandImpl {
|
||||
.arg(Arg::with_name("credit").long("credit").short("c").required(true).takes_value(true).help("Credit"))
|
||||
.arg(Arg::with_name("key").long("key").short("k").required(true).takes_value(true).help("Key pair"))
|
||||
}
|
||||
|
||||
fn run(&self, _arg_matches: &ArgMatches, sub_arg_matches: &ArgMatches) -> CommandError {
|
||||
let name = sub_arg_matches.value_of("name").unwrap();
|
||||
let receiver = sub_arg_matches.value_of("receiver").unwrap();
|
||||
|
||||
Reference in New Issue
Block a user