aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-12-03 00:19:46 -0500
committerRalph Amissah <ralph@amissah.com>2013-12-03 00:19:46 -0500
commitce74f66cf2cd1dae56f7f7f14586bd770a0b32f4 (patch)
tree8e68bd4896d1cf53f7b3bc4a0522badc233b3d79 /lib/sisu/v5/options.rb
parentv5: plaintext, smarttext: textile (diff)
v5: plaintext, smarttext: asciidoc
Diffstat (limited to 'lib/sisu/v5/options.rb')
-rw-r--r--lib/sisu/v5/options.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sisu/v5/options.rb b/lib/sisu/v5/options.rb
index ccea95aa..3995a1b4 100644
--- a/lib/sisu/v5/options.rb
+++ b/lib/sisu/v5/options.rb
@@ -878,6 +878,9 @@ module SiSU_Commandline
act[:txt_textile]=(mod.inspect =~/"--textile"/) \
? { bool: true, set: :on }
: { bool: false, set: :na }
+ act[:txt_asciidoc]=(mod.inspect =~/"--asciidoc"/) \
+ ? { bool: true, set: :on }
+ : { bool: false, set: :na }
act[:manpage]=(cmd =~/i/ \
|| mod.inspect =~/"--manpage"|"--man"/) \
? { bool: true, set: :on }
@@ -968,6 +971,7 @@ module SiSU_Commandline
{ bool: true, set: :on }
elsif (act[:txt][:set]==:on \
|| act[:txt_textile][:set]==:on \
+ || act[:txt_asciidoc][:set]==:on \
|| act[:xhtml][:set]==:on \
|| act[:epub][:set]==:on \
|| act[:html][:set]==:on \
@@ -1013,6 +1017,7 @@ module SiSU_Commandline
{ bool: true, set: :on }
elsif (act[:txt][:set]==:on \
|| act[:txt_textile][:set]==:on \
+ || act[:txt_asciidoc][:set]==:on \
|| act[:xhtml][:set]==:on \
|| act[:epub][:set]==:on \
|| act[:html][:set]==:on \