Skip to content

Commit

Permalink
Merge pull request clap-rs#3448 from epage/examples
Browse files Browse the repository at this point in the history
docs(examples): Add missing feature flag reqs
  • Loading branch information
epage committed Feb 11, 2022
2 parents 5f71ca0 + f00f97c commit b076f81
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/cargo-example-derive.rs
@@ -1,3 +1,5 @@
// Note: this requires the `derive` feature

use clap::Parser;

#[derive(Parser)]
Expand Down
2 changes: 2 additions & 0 deletions examples/cargo-example.rs
@@ -1,3 +1,5 @@
// Note: this requires the `cargo` feature

fn main() {
let app = clap::App::new("cargo")
.bin_name("cargo")
Expand Down
2 changes: 2 additions & 0 deletions examples/git.rs
@@ -1,3 +1,5 @@
// Note: this requires the `cargo` feature

use std::path::PathBuf;

use clap::{arg, App, AppSettings};
Expand Down
2 changes: 2 additions & 0 deletions examples/multicall-busybox.rs
@@ -1,3 +1,5 @@
// Note: this requires the `unstable-multicall` feature

use std::process::exit;

use clap::{App, AppSettings, Arg};
Expand Down
2 changes: 2 additions & 0 deletions examples/multicall-hostname.rs
@@ -1,3 +1,5 @@
// Note: this requires the `unstable-multicall` feature

use clap::{App, AppSettings};

fn main() {
Expand Down

0 comments on commit b076f81

Please sign in to comment.