Skip to content

Commit

Permalink
Add link to online documentation to CLI help
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 18, 2018
1 parent 0ca982f commit 641d753
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "termbook-cli"
version = "1.2.2"
version = "1.2.3"
authors = ["Sebastian Thiel <byronimo@gmail.com>"]

description = """`termbook` is a command-line tool to build `mdbook`'s \
Expand Down
9 changes: 6 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ lazy_static! {
}

pub fn app<'a, 'b>() -> App<'a, 'b> {
let mut app: App = app_from_crate!();
app = app.name("termbook");
let app: App = app_from_crate!();
let completions = App::new("completions")
.about("generate completions for supported shell")
.arg({
Expand Down Expand Up @@ -66,7 +65,11 @@ pub fn app<'a, 'b>() -> App<'a, 'b> {
or a glob pattern matching the chapter name, e.g. 'Intro*'. \
If the pattern is invalid, it will be ignored silently, and the program will fail if no pattern matches."));

app.subcommand(build)
app.name("termbook")
.after_help(
"Also have a look at the online documentation at https://byron.github.io/termbook",
)
.subcommand(build)
.subcommand(playback)
.subcommand(completions)
}

0 comments on commit 641d753

Please sign in to comment.