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

Upgrade Dependencies #5

wants to merge 2 commits into from

Conversation

Asafrose
Copy link

No description provided.

Copy link
Member

@epage epage left a 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)

examples/testapp.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
@Asafrose
Copy link
Author

Asafrose commented Apr 29, 2022

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.

Comment on lines -111 to +116
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);
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants