Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
write headings for command line arguments
- Loading branch information
1 parent
4f6ed51
commit 5424dc4
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Command-line arguments | ||
|
||
Here's a list of command-line arguments to `rustc` and what they do. | ||
|
||
## `-h`/`--help`: get help | ||
|
||
## `--cfg`: configure the compilation environment | ||
|
||
## `-L`: add a directory to the library search path. | ||
|
||
## `-l`: link the generated crate to a native library | ||
|
||
## `--crate-type`: a list of types of crates for the compiler to emit | ||
|
||
## `--crate-name`: specify the name of the crate being built | ||
|
||
## `--emit`: emit output other than a crate | ||
|
||
## `--print`: print compiler information | ||
|
||
## `-g`: include debug information | ||
|
||
## `-O`: optimize your code | ||
|
||
## `-o`: filename of the output | ||
|
||
## `--out-dir`: directory to write the output in | ||
|
||
## `--explain`: provide a detailed explanation of an error message | ||
|
||
## `--test`: build a test harness | ||
|
||
## `--target`: select a target triple to build | ||
|
||
## `-W`: set lint warnings | ||
|
||
## `-A`: set lint allowed | ||
|
||
## `-D`: set lint denied | ||
|
||
## `-F`: set lint forbidden | ||
|
||
## `--cap-lints`: set the most restrictive lint level | ||
|
||
## `-C`/`--codegen`: code generation options | ||
|
||
## `-V`/`--verision`: print a version | ||
|
||
## `-v`/`--verbose`: use verbose output | ||
|
||
## `--extern`: specify where an external library is located | ||
|
||
## `--sysroot`: Override the system root | ||
|
||
## `--error-format`: control how errors are produced | ||
|
||
## `--color`: configur coloring of output |
This file was deleted.
Oops, something went wrong.