Skip to content

Commit ee000fe

Browse files
committed
Add a test for only options command
Signed-off-by: hi-rustin <[email protected]>
1 parent 81fad9d commit ee000fe

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
bin.name = "rustup"
2+
args = ["-v"]
3+
status.code = 1
4+
stdout = """
5+
rustup [..]
6+
The Rust toolchain installer
7+
8+
USAGE:
9+
rustup[EXE] [OPTIONS] [+toolchain] <SUBCOMMAND>
10+
11+
ARGS:
12+
<+toolchain> release channel (e.g. +stable) or custom toolchain to set override
13+
14+
OPTIONS:
15+
-v, --verbose Enable verbose output
16+
-q, --quiet Disable progress output
17+
-h, --help Print help information
18+
-V, --version Print version information
19+
20+
SUBCOMMANDS:
21+
show Show the active and installed toolchains or profiles
22+
update Update Rust toolchains and rustup
23+
check Check for updates to Rust toolchains and rustup
24+
default Set the default toolchain
25+
toolchain Modify or query the installed toolchains
26+
target Modify a toolchain's supported targets
27+
component Modify a toolchain's installed components
28+
override Modify directory toolchain overrides
29+
run Run a command with an environment configured for a given toolchain
30+
which Display which binary will be run for a given command
31+
doc Open the documentation for the current toolchain
32+
...
33+
self Modify the rustup installation
34+
set Alter rustup settings
35+
completions Generate tab-completion scripts for your shell
36+
help Print this message or the help of the given subcommand(s)
37+
38+
DISCUSSION:
39+
Rustup installs The Rust Programming Language from the official
40+
release channels, enabling you to easily switch between stable,
41+
beta, and nightly compilers and keep them updated. It makes
42+
cross-compiling simpler with binary builds of the standard library
43+
for common platforms.
44+
45+
If you are new to Rust consider running `rustup doc --book` to
46+
learn Rust.
47+
"""
48+
stderr = ""

0 commit comments

Comments
 (0)