Skip to content

Commit afa145e

Browse files
committed
Rename --project to --package
1 parent c81321a commit afa145e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Useful command-line arguments:
101101
- `--bench`: Compile and run benchmarks. Requires a nightly toolchain.
102102
- `--debug`: Build a debug executable, not an optimised one.
103103
- `--force`: Force the script to be rebuilt. Useful if you want to force a recompile with a different toolchain.
104-
- `--project`: Generate the Cargo package and print the path to it - but don't compile or run it. Effectively "unpacks" the script into a Cargo package.
104+
- `--package`: Generate the Cargo package and print the path to it - but don't compile or run it. Effectively "unpacks" the script into a Cargo package.
105105
- `--test`: Compile and run tests.
106106

107107
## Executable Scripts

src/arguments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl Args {
129129
)
130130
.arg(Arg::new("gen_pkg_only")
131131
.help("Generate the Cargo package and print the path to it, but don't compile or run it.")
132-
.long("project")
132+
.long("package")
133133
.short('p')
134134
.action(ArgAction::SetTrue)
135135
.requires("script")

tests/scripts/gen-only.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cd "$mytmpdir"
88

99
printf 'println!("hello, world");' > script.rs
1010

11-
cd $(rust-script --project script.rs)
11+
cd $(rust-script --package script.rs)
1212

1313
echo "About to cargo run"
1414
cargo run -q

0 commit comments

Comments
 (0)