Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Upgrade Dependencies #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 115 additions & 66 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ description = "Generate Markdown documentation for clap application definitions"
readme = "README.md"

[dependencies]
clap = { git = "https://github.com/kbknapp/clap-rs", branch = "v3-dev" }
pulldown-cmark = "0.1.2"
pulldown-cmark-to-cmark = "1.1.0"
clap = "3.1.8"
pulldown-cmark = "0.9.1"
pulldown-cmark-to-cmark = "10.0.1"
18 changes: 9 additions & 9 deletions examples/testapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
extern crate clap;
extern crate clap_md;

use clap::{App, AppSettings, Arg, SubCommand};
use clap::{Arg, Command};
use clap_md::app_to_md;

fn main() {
let a = App::new("testapp")
let a = Command::new("testapp")
.about("Pointless application")
.setting(AppSettings::SubcommandRequiredElseHelp)
.arg_required_else_help(true)
.subcommand_required(true)
epage marked this conversation as resolved.
Show resolved Hide resolved
.author("Katharina Fey <kookie@spacekookie.de>")
// .author("Yosh Wuyts <y@w.s")
.long_about("Lorem Ipsum bla bla bla")
.arg(Arg::with_name("debug").short("d").help("Make program output debug messages"))
.arg(Arg::with_name("output").short("o").takes_value(true).help("Output File"))
.subcommand(SubCommand::with_name("foo").arg(Arg::with_name("bar").short("b").long("barr")));
.arg(Arg::new("debug").short('d').help("Make program output debug messages"))
.arg(Arg::new("output").short('o').takes_value(true).help("Output File"))
.subcommand(Command::new("foo").arg(Arg::new("bar").short('b').long("barr")));

let markdown = app_to_md(&a, 1).unwrap();
let markdown = app_to_md(a, 1).unwrap();
println!("{}", markdown);
}
}
Loading