mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
Merge pull request #3448 from epage/examples
docs(examples): Add missing feature flag reqs
This commit is contained in:
commit
b076f81207
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…
Add table
Reference in a new issue