refactor(Examples): corrects compiler warnings about names

Closes #204
This commit is contained in:
Kevin K 2015-08-30 15:43:38 -04:00
parent 62297c7040
commit 4f836ee5ef
19 changed files with 7 additions and 3 deletions

View file

@ -2,8 +2,8 @@ extern crate clap;
use clap::{App}; use clap::{App};
#[allow(unused_variables)]
fn main() { fn main() {
// Apps describe the top level application // Apps describe the top level application
// //
// You create an App and set various options on that App using the "builder pattern" // You create an App and set various options on that App using the "builder pattern"

View file

@ -2,8 +2,8 @@ extern crate clap;
use clap::{App, Arg}; use clap::{App, Arg};
#[allow(unused_variables)]
fn main() { fn main() {
// Args describe a possible valid argument which may be supplied by the user at runtime. There // Args describe a possible valid argument which may be supplied by the user at runtime. There
// are three different types of arguments (flags, options, and positional) as well as a fourth // are three different types of arguments (flags, options, and positional) as well as a fourth
// special type of argument, called SubCommands (which will be discussed separately). // special type of argument, called SubCommands (which will be discussed separately).

View file

@ -3,6 +3,7 @@ extern crate clap;
use clap::App; use clap::App;
#[allow(unused_variables)]
fn main() { fn main() {
// You can have clap pull the application version directly from your Cargo.toml starting with // You can have clap pull the application version directly from your Cargo.toml starting with
// clap v0.4.14 on crates.io (or master#a81f915 on github). Using Rust's env! macro like this: // clap v0.4.14 on crates.io (or master#a81f915 on github). Using Rust's env! macro like this:

View file

@ -2,6 +2,7 @@ extern crate clap;
use clap::{App, Arg}; use clap::{App, Arg};
#[allow(unused_variables)]
fn main() { fn main() {
// You can get a "default value" like feature by using Option<T>'s .unwrap_or() method // You can get a "default value" like feature by using Option<T>'s .unwrap_or() method
// //

View file

@ -2,6 +2,7 @@ extern crate clap;
use clap::{App, Arg}; use clap::{App, Arg};
#[allow(unused_variables)]
fn main() { fn main() {
// You can define a function (or a closure) to use as a validator to argument values. The // You can define a function (or a closure) to use as a validator to argument values. The
// function must accept a String and return Result<(), String> where Err(String) is the message // function must accept a String and return Result<(), String> where Err(String) is the message

View file

@ -2,6 +2,7 @@ extern crate clap;
use clap::{App, AppSettings, SubCommand}; use clap::{App, AppSettings, SubCommand};
#[allow(unused_variables)]
fn main() { fn main() {
// You can use AppSettings to change the application level behavior of clap. .setting() function // You can use AppSettings to change the application level behavior of clap. .setting() function
// of App struct takes AppSettings enum as argument. There is also .settings() function which // of App struct takes AppSettings enum as argument. There is also .settings() function which

View file

@ -1,4 +1,4 @@
use super::{App, Arg, SubCommand, AppSettings}; use super::{App, Arg, SubCommand};
use std::collections::HashSet; use std::collections::HashSet;
use std::vec::Vec; use std::vec::Vec;