Skip to content

Commit

Permalink
fix(clap-up): use clap 1.0.3
Browse files Browse the repository at this point in the history
* `SubCommand::new(...)` was renamed to `SubCommand::with_name(...)`
  which actually is now consistent with everything else
  (e.g. `Arg::with_name(...)`)
  • Loading branch information
Byron committed Jul 15, 2015
1 parent e129a7d commit be894be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/api/type-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ cargo:
dependencies:
- strsim = "*"
- yup-hyper-mock = ">=1.0.0"
- clap = ">= 0.9.1"
- clap = ">= 1.0.3"
4 changes: 2 additions & 2 deletions src/mako/cli/lib/argparse.mako
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ let mut app = App::new("${util.program_name()}")
% endfor
for &(main_command_name, ref about, ref subcommands) in arg_data.iter() {
let mut mcmd = SubCommand::new(main_command_name).about(about);
let mut mcmd = SubCommand::with_name(main_command_name).about(about);
for &(sub_command_name, ref desc, url_info, ref args) in subcommands {
let mut scmd = SubCommand::new(sub_command_name);
let mut scmd = SubCommand::with_name(sub_command_name);
if let &Some(desc) = desc {
scmd = scmd.about(desc);
}
Expand Down

0 comments on commit be894be

Please sign in to comment.