From 28b7e3161fb772e5309042648fe8c3a420645bac Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 7 Jul 2015 04:27:53 +0100 Subject: [PATCH] docs(readme): use with_name for subcommands ::new doesn't exist anymore --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9c988b07..c1ae9e04 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ fn main() { "-c --config=[CONFIG] 'Sets a custom config file' 'Sets the input file to use' [debug]... -d 'Sets the level of debugging information'") - .subcommand(SubCommand::new("test") + .subcommand(SubCommand::with_name("test") .about("controls testing features") .version("1.3") .author("Someone E. ") @@ -155,7 +155,7 @@ fn main() { .short("d") .multiple(true) .help("Sets the level of debugging information")) - .subcommand(SubCommand::new("test") + .subcommand(SubCommand::with_name("test") .about("controls testing features") .version("1.3") .author("Someone E. ") @@ -191,7 +191,7 @@ fn main() { } } - // more porgram logic goes here... + // more program logic goes here... } ```