File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ _cargo() {
75
75
{-F+,--features=}'[specify features to activate]:feature' \
76
76
"--default-features[enable the default features]" \
77
77
"--no-default-features[don't enable the default features]" \
78
+ "--offline[run without accessing the network]" \
78
79
"--optional[mark the dependency as optional]" \
79
80
"--no-optional[mark the dependency as required]" \
80
81
"--dev[add as a dev dependency]" \
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ _cargo()
49
49
local opt_targets=" --lib --bin --bins --example --examples --test --tests --bench --benches --all-targets"
50
50
51
51
local opt___nocmd=" $opt_common -V --version --list --explain"
52
- local opt__add=" $opt_common -p --package --features --default-features --no-default-features $opt_mani --optional --no-optional --rename --dry-run --path --git --branch --tag --rev --registry --dev --build --target --ignore-rust-version"
52
+ local opt__add=" $opt_common -p --package --features --default-features --no-default-features $opt_mani --offline -- optional --no-optional --rename --dry-run --path --git --branch --tag --rev --registry --dev --build --target --ignore-rust-version"
53
53
local opt__bench=" $opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets --message-format --target --no-run --no-fail-fast --target-dir --ignore-rust-version"
54
54
local opt__build=" $opt_common $opt_pkg_spec $opt_feat $opt_mani $opt_lock $opt_parallel $opt_targets --message-format --target --release --profile --target-dir --ignore-rust-version"
55
55
local opt__b=" $opt__build "
You can’t perform that action at this time.
0 commit comments