diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-05-24 23:52:54 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-05-25 00:53:09 -0600 |
| commit | 44403c0689665a97fba1eac040d3b397da0bb7ea (patch) | |
| tree | 992268303727c32c73596b040bce9417fcf13b1f /lib | |
| parent | 770980a3670d39e7311e3f99d7bdf251611f9286 (diff) | |
fix indentation in definition of CLI options with multi-line description
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/cli/options.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/asciidoctor/cli/options.rb b/lib/asciidoctor/cli/options.rb index 238fbe7e..33547892 100644 --- a/lib/asciidoctor/cli/options.rb +++ b/lib/asciidoctor/cli/options.rb @@ -47,11 +47,11 @@ module Asciidoctor EOS opts.on('-b', '--backend BACKEND', 'set backend output format: [html5, xhtml5, docbook5, manpage] (default: html5)', - 'additional backends are supported via extended converters (e.g., pdf, epub3)') do |backend| + 'additional backends are supported via extended converters (e.g., pdf, epub3)') do |backend| self[:attributes]['backend'] = backend end opts.on('-d', '--doctype DOCTYPE', ['article', 'book', 'manpage', 'inline'], - 'document type to use when converting document: [article, book, manpage, inline] (default: article)') do |doctype| + 'document type to use when converting document: [article, book, manpage, inline] (default: article)') do |doctype| self[:attributes]['doctype'] = doctype end opts.on('-e', '--embedded', 'suppress enclosing document structure and output an embedded document (default: false)') do @@ -61,14 +61,14 @@ module Asciidoctor self[:output_file] = output_file end opts.on('--safe', - 'set safe mode level to safe (default: unsafe)', - 'enables include directives, but prevents access to ancestor paths of source file', - 'provided for compatibility with the asciidoc command') do + 'set safe mode level to safe (default: unsafe)', + 'enables include directives, but prevents access to ancestor paths of source file', + 'provided for compatibility with the asciidoc command') do self[:safe] = SafeMode::SAFE end opts.on('-S', '--safe-mode SAFE_MODE', (safe_mode_names = SafeMode.names), - %(set safe mode level explicitly: [#{safe_mode_names.join ', '}] (default: unsafe)), - 'disables potentially dangerous macros in source files, such as include::[]') do |name| + %(set safe mode level explicitly: [#{safe_mode_names.join ', '}] (default: unsafe)), + 'disables potentially dangerous macros in source files, such as include::[]') do |name| self[:safe] = SafeMode.value_for_name name end opts.on('-s', '--no-header-footer', 'suppress enclosing document structure and output an embedded document (default: false)') do @@ -78,19 +78,19 @@ module Asciidoctor self[:attributes]['sectnums'] = '' end opts.on('--eruby ERUBY', ['erb', 'erubi', 'erubis'], - 'specify eRuby implementation to use when rendering custom ERB templates: [erb, erubi, erubis] (default: erb)') do |eruby| + 'specify eRuby implementation to use when rendering custom ERB templates: [erb, erubi, erubis] (default: erb)') do |eruby| self[:eruby] = eruby end opts.on('-a', '--attribute name[=value]', 'a document attribute to set in the form of name, name!, or name=value pair', - 'this attribute takes precedence over the same attribute defined in the source document', - 'unless either the name or value ends in @ (i.e., name@=value or name=value@)') do |attr| + 'this attribute takes precedence over the same attribute defined in the source document', + 'unless either the name or value ends in @ (i.e., name@=value or name=value@)') do |attr| next if (attr = attr.rstrip).empty? || attr == '=' attr = attr.encode UTF_8 unless attr.encoding == UTF_8 name, _, val = attr.partition '=' self[:attributes][name] = val end opts.on('-T', '--template-dir DIR', 'a directory containing custom converter templates that override the built-in converter (requires tilt gem)', - 'may be specified multiple times') do |template_dir| + 'may be specified multiple times') do |template_dir| if self[:template_dirs].nil? self[:template_dirs] = [template_dir] elsif ::Array === self[:template_dirs] |
