summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/tests/testsuite/cargo_init/help/stdout.log
blob: 197a5f8d1e13ca2e09917265d01bfac2e46b5406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Create a new cargo package in an existing directory

Usage: cargo[EXE] init [OPTIONS] [PATH]

Arguments:
  [PATH]  [default: .]

Options:
      --vcs <VCS>            Initialize a new repository for the given version control system,
                             overriding a global configuration. [possible values: git, hg, pijul,
                             fossil, none]
      --bin                  Use a binary (application) template [default]
      --lib                  Use a library template
      --edition <YEAR>       Edition to set for the crate generated [possible values: 2015, 2018,
                             2021, 2024]
      --name <NAME>          Set the resulting package name, defaults to the directory name
      --registry <REGISTRY>  Registry to use
  -v, --verbose...           Use verbose output (-vv very verbose/build.rs output)
  -q, --quiet                Do not print cargo log messages
      --color <WHEN>         Coloring: auto, always, never
      --config <KEY=VALUE>   Override a configuration value
  -Z <FLAG>                  Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details
  -h, --help                 Print help

Manifest Options:
      --frozen   Require Cargo.lock and cache are up to date
      --locked   Require Cargo.lock is up to date
      --offline  Run without accessing the network

Run `cargo help init` for more detailed information.