Re:Argdown, like Markdown for argument mapping
by andreypopp on Thursday August 08, 2024 @02:19AM
(#41188632)
checkout http://docopt.org then
[ Parent
| on HN ]
Re:Argdown, like Markdown for argument mapping
by wingmanjd on Thursday August 08, 2024 @02:29AM
(#41188670)
Whoah, that's a neat tool! I definitely need to implement this with my scripts.
Thanks!
Re:Argdown, like Markdown for argument mapping
by maleldil on Thursday August 08, 2024 @07:12AM
(#41190190)
It's abandoned, and tbh it's more trouble than it's worth. It's far easier and more reliable to specify the CLI and have it generate the help text than the other way around. All major languages have good CLI parsing libraries (some in the stdlib itself, like Go and Python).
Re:Argdown, like Markdown for argument mapping
by kardos on Thursday August 08, 2024 @11:18AM
(#41192459)
Yeah..... it seems like it would be fragile and require lots of iterating to converge on a help doc that is both "pretty" and correctly parsed by docopt
Re:Argdown, like Markdown for argument mapping
by thechao on Thursday August 08, 2024 @07:44AM
(#41190447)
It's a neat idea (I maintained an unofficial C port for a while); but, terrible in practice.
Re:Argdown, like Markdown for argument mapping
by kardos on Thursday August 08, 2024 @02:49AM
(#41188784)
That seems to be an abandoned project
Re:Argdown, like Markdown for argument mapping
by clan on Thursday August 08, 2024 @03:30AM
(#41188996)
Yes, according to the archived Rust implmentation[1] which in turn refers you to either clap[2] or structopt[3]. Other implmentations does not mention this but those I looked at had not been touched for years. Either very stable or unmaintained. Unfortunately the latter according to the Rust crate. The dotNet implmentation had a very small version bump in the dependencies but the rest of the project does not seem to have been touched the past 2 years.
[1] https://github.com/docopt/docopt.rs
Re:Argdown, like Markdown for argument mapping
by kardos on Thursday August 08, 2024 @11:20AM
(#41192483)
FWIW, there seems to be a less-abandoned fork here: https://github.com/jazzband/docopt-ng
I'm sticking with argparse though
Re:Argdown, like Markdown for argument mapping
by sandywaffles on Thursday August 08, 2024 @12:02PM
(#41192965)
structopt became part of clap proper (as `clap_derive`) when clap v3 was released.