asciidoctor / docbookrx

(An early version of) a DocBook to AsciiDoc converter written in Ruby.
MIT License
22 stars 49 forks source link

Create a proper command-line interface #4

Open mojavelinux opened 10 years ago

mojavelinux commented 10 years ago

Create a proper command-line interface to give the user greater control of the script.

Features should include:

mojavelinux commented 8 years ago

Perhaps we can use a (simple) cli library like:

mojavelinux commented 8 years ago

Once this is done, I think we can close https://github.com/asciidoctor/asciidoctor/issues/168.

FranklinYu commented 4 years ago

I would like to help this. Do you have any preference among the three options?

Some data for analysis can be found on Ruby Toolbox:

By the way, the category Command Line Option Parsers and Scripting Frameworks may have some interesting choices.

mojavelinux commented 1 year ago

I don't like dependencies, so I prefer it be done with Ruby's stdlib. You can find an example to draw from in the kramdown-asciidoc project. See https://github.com/asciidoctor/kramdown-asciidoc/blob/main/lib/kramdown-asciidoc/cli.rb