mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
docs(examples): Add missing feature flag reqs
This commit is contained in:
parent
48686804c7
commit
f00f97c8c4
5 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
// Note: this requires the `derive` feature
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Note: this requires the `cargo` feature
|
||||
|
||||
fn main() {
|
||||
let app = clap::App::new("cargo")
|
||||
.bin_name("cargo")
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Note: this requires the `cargo` feature
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
use clap::{arg, App, AppSettings};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Note: this requires the `unstable-multicall` feature
|
||||
|
||||
use std::process::exit;
|
||||
|
||||
use clap::{App, AppSettings, Arg};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// Note: this requires the `unstable-multicall` feature
|
||||
|
||||
use clap::{App, AppSettings};
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Reference in a new issue