The command line usage of plugins with options are not described in the remark-cli readme
I don't found an info about this in remark and remark-cli readme
found here: https://github.com/remarkjs/remark-validate-links
remark --use 'validate-links=repository:"foo/bar"' example.md
maybe also write how i can use 2 parameters...
n/a
@muescha https://github.com/remarkjs/remark/tree/main/packages/remark-cli#cli give a high level overview of the options, it also links to https://github.com/unifiedjs/unified-args#cli which describes the options in depth, including how to --use plugins https://github.com/unifiedjs/unified-args#--use-plugin
maybe also write how i can use 2 parameters
The documentation may help, if you have a specific question on using options together feel free to reach out at https://spectrum.chat/unified/unified
thanks for the fast reply.
the linked docs are very detailed :)
it is easy to miss the line above: "See unified-args, which provides the interface, for more info on all available options."
What about another bullet at the start of the initial list, saying: "Interface by [unified-args]"? Packages/remark also has such an initial item.
Generally though, adding an example of one thing, will make the readme more verbose, and instead harder to find all the other things.
i think just put the info just below the CLI package help block like:
## CLI
...
## Usage
A detailed description of all available options of `remark-cli` are at: [`unified-args`][unified-args].
--> because while i scan the readme i would there expect at this place the details how to use it
See unified-args, which provides the interface, for more info on all available options.
this line i "translated" for me at first glimpse as: "this tool uses unified-args, if you also like to use unified-args in your tool, then look at the link for options how you can implement it for your tools"
We already have a Use section, which typically contains a basic example, adding another one doesn’t make sense to me.
I added another link at the top: https://github.com/remarkjs/remark/commit/4673f75f0eb7d117aa386ef963e25636fba88ec4.
I’m not sure what to do with “scan” and “at first glimpse”, I of course want to make docs better but this also sounds like not reading the docs properly. The link to unified-args is in there twice now, I hope that’s enough!
if you have command documentations (for example also the "man pages" -> man less in terminal) then you have mostly this order:
so i looked at position 4 for the option details and can not find infos. then i was not expecting in section 2 to find the infos behind in this link in the description
so placing the info with link after the code block would helped me:
````markdown
(overview of options)
A detailed description of all available options of remark-cli are at: [unified-args][unified-args].
````
PS: also your docs at https://github.com/unifiedjs/unified-args#cli follow this order
PS: sorry if it feels like bikeshedding. i just try to explain "why I did not see the link" - but not forcing you to changing the readme. i am fine with it how it is.