-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade Dependencies #5
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious, what is your intention with this? Seems like killercup hasn't ever published this and I'm assuming this still has a ways to go and would become trivial after clap-rs/clap#2914 (otherwise, its a pain to get everything right, see clap_mangen
for how far we still have to go)
@epage nothing serious. i am coding a small school project in rust and wondered if there is a way to generate a simple readme.md file from my command line arguments. once i stumbled upon this repo i found out it does not work because of outdated dependencies. since i have fixed it for my own usage i thought it will be nice to push it here. |
app: &App<'a, 'b>, | ||
level: i32, | ||
) -> Result<String, Box<::std::error::Error>> { | ||
pub fn app_to_md(app: Command, level: i32) -> Result<String, Box<dyn std::error::Error>> { | ||
let mut document = Document(Vec::new()); | ||
recursive(&mut document, app, level, level > 1); | ||
recursive(&mut document, &app, level, level > 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs to call app.build();
before doing anything else
No description provided.