mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
Fix some broken doc links and formatting.
This commit is contained in:
parent
f27ef3beb4
commit
09de35f208
4 changed files with 17 additions and 10 deletions
|
@ -165,6 +165,7 @@ pub enum AppSettings {
|
|||
/// [`ArgMatches::os_values_of`]: ./struct.ArgMatches.html#method.os_values_of
|
||||
/// [`ArgMatches::lossy_value_of`]: ./struct.ArgMatches.html#method.lossy_value_of
|
||||
/// [`ArgMatches::lossy_values_of`]: ./struct.ArgMatches.html#method.lossy_values_of
|
||||
/// [`SubCommand`]: ./struct.SubCommand.html
|
||||
AllowInvalidUtf8,
|
||||
|
||||
/// Specifies that leading hyphens are allowed in argument *values*, such as negative numbers
|
||||
|
@ -560,6 +561,7 @@ pub enum AppSettings {
|
|||
/// assert_eq!(res.unwrap_err().kind, ErrorKind::VersionDisplayed);
|
||||
/// ```
|
||||
/// [`SubCommand`]: ./struct.SubCommand.html
|
||||
/// [`App`]: ./struct.App.html
|
||||
DisableVersion,
|
||||
|
||||
/// Displays the arguments and [`SubCommand`]s in the help message in the order that they were
|
||||
|
@ -901,7 +903,7 @@ pub enum AppSettings {
|
|||
/// [`SubCommand`]: ./struct.SubCommand.html
|
||||
VersionlessSubcommands,
|
||||
|
||||
/// Will display a message "Press [ENTER]/[RETURN] to continue..." and wait for user before
|
||||
/// Will display a message "Press \[ENTER\]/\[RETURN\] to continue..." and wait for user before
|
||||
/// exiting
|
||||
///
|
||||
/// This is most useful when writing an application which is run from a GUI shortcut, or on
|
||||
|
|
18
src/lib.rs
18
src/lib.rs
|
@ -29,8 +29,8 @@
|
|||
//!
|
||||
//! The following examples show a quick example of some of the very basic functionality of `clap`.
|
||||
//! For more advanced usage, such as requirements, conflicts, groups, multiple values and
|
||||
//! occurrences see the [documentation](https://docs.rs/clap/), [examples/](https://github.com/kbknapp/clap-rs/tree/master/examples) directory of
|
||||
//! this repository or the [video tutorials](https://www.youtube.com/playlist?list=PLza5oFLQGTl2Z5T8g1pRkIynR3E0_pc7U).
|
||||
//! occurrences see the [documentation](https://docs.rs/clap/), [examples/] directory of
|
||||
//! this repository or the [video tutorials].
|
||||
//!
|
||||
//! **NOTE:** All of these examples are functionally the same, but show different styles in which to
|
||||
//! use `clap`
|
||||
|
@ -319,7 +319,7 @@
|
|||
//! Add `extern crate clap;` to your crate root.
|
||||
//!
|
||||
//! Define a list of valid arguments for your program (see the
|
||||
//! [documentation](https://docs.rs/clap/) or [examples/](examples) directory of this repo)
|
||||
//! [documentation](https://docs.rs/clap/) or [examples/] directory of this repo)
|
||||
//!
|
||||
//! Then run `cargo build` or `cargo update && cargo build` for your project.
|
||||
//!
|
||||
|
@ -372,11 +372,11 @@
|
|||
//!
|
||||
//! You can find complete documentation on the [docs.rs](https://docs.rs/clap/) for this project.
|
||||
//!
|
||||
//! You can also find usage examples in the [examples/](https://github.com/kbknapp/clap-rs/tree/master/examples) directory of this repo.
|
||||
//! You can also find usage examples in the [examples/] directory of this repo.
|
||||
//!
|
||||
//! #### Video Tutorials
|
||||
//!
|
||||
//! There's also the video tutorial series [Argument Parsing with Rust v2](https://www.youtube.com/playlist?list=PLza5oFLQGTl2Z5T8g1pRkIynR3E0_pc7U).
|
||||
//! There's also the video tutorial series [Argument Parsing with Rust v2][video tutorials].
|
||||
//!
|
||||
//! These videos slowly trickle out as I finish them and currently a work in progress.
|
||||
//!
|
||||
|
@ -388,7 +388,7 @@
|
|||
//! appreciated!
|
||||
//!
|
||||
//! Another really great way to help is if you find an interesting, or helpful way in which to use
|
||||
//! `clap`. You can either add it to the [examples/](examples) directory, or file an issue and tell
|
||||
//! `clap`. You can either add it to the [examples/] directory, or file an issue and tell
|
||||
//! me. I'm all about giving credit where credit is due :)
|
||||
//!
|
||||
//! Please read [CONTRIBUTING.md](https://raw.githubusercontent.com/kbknapp/clap-rs/master/.github/CONTRIBUTING.md) before you start contributing.
|
||||
|
@ -509,8 +509,12 @@
|
|||
//!
|
||||
//! ## License
|
||||
//!
|
||||
//! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT](LICENSE-MIT) file in
|
||||
//! `clap` is licensed under the MIT license. Please read the [LICENSE-MIT][license] file in
|
||||
//! this repository for more information.
|
||||
//!
|
||||
//! [examples/]: https://github.com/kbknapp/clap-rs/tree/master/examples
|
||||
//! [video tutorials]: https://www.youtube.com/playlist?list=PLza5oFLQGTl2Z5T8g1pRkIynR3E0_pc7U
|
||||
//! [license]: https://raw.githubusercontent.com/kbknapp/clap-rs/master/LICENSE-MIT
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![doc(html_root_url = "https://docs.rs/clap/3.0.0-alpha1")]
|
||||
|
|
|
@ -267,7 +267,7 @@ macro_rules! _clap_count_exprs {
|
|||
///
|
||||
/// **NOTE:** This macro automatically implements [`std::str::FromStr`] and [`std::fmt::Display`]
|
||||
///
|
||||
/// **NOTE:** These enums support pub (or not) and uses of the #[derive()] traits
|
||||
/// **NOTE:** These enums support pub (or not) and uses of the `#[derive()]` traits
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
|
@ -196,7 +196,7 @@ pub enum ErrorKind {
|
|||
/// assert!(result.is_err());
|
||||
/// assert_eq!(result.unwrap_err().kind, ErrorKind::WrongNumberOfValues);
|
||||
/// ```
|
||||
/// [`Arg::number_of_values`]
|
||||
///
|
||||
/// [`Arg::number_of_values`]: ./struct.Arg.html#method.number_of_values
|
||||
/// [`Arg::value_names`]: ./struct.Arg.html#method.value_names
|
||||
WrongNumberOfValues,
|
||||
|
@ -365,6 +365,7 @@ pub enum ErrorKind {
|
|||
|
||||
/// Represents a [Format error] (which is a part of [`Display`]).
|
||||
/// Typically caused by writing to `stderr` or `stdout`.
|
||||
///
|
||||
/// [`Display`]: https://doc.rust-lang.org/std/fmt/trait.Display.html
|
||||
/// [Format error]: https://doc.rust-lang.org/std/fmt/struct.Error.html
|
||||
Format,
|
||||
|
|
Loading…
Add table
Reference in a new issue