aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-05-12 00:49:57 -0400
committerRalph Amissah <ralph@amissah.com>2012-05-12 00:50:06 -0400
commit5fffe95fbbde7a768853e8674c6d5087aac39967 (patch)
tree73cf1201baf5aabbaad3badb96a6dcab3dce99a8 /lib/sisu/v3/options.rb
parentv3: sst_identify_markup, document header SiSU 3.0 (diff)
v3: a few misc fixes
* options, omissions and typo fix * particulars, fix, check * shared_metadata, fix
Diffstat (limited to 'lib/sisu/v3/options.rb')
-rw-r--r--lib/sisu/v3/options.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb
index e804d7f7..a193c093 100644
--- a/lib/sisu/v3/options.rb
+++ b/lib/sisu/v3/options.rb
@@ -427,6 +427,9 @@ module SiSU_Commandline
else ''
end
end
+ if cmd !~/u/ #% add urls
+ extra+='u'
+ end
cmd=cmd + extra
cmds=cmd.scan(/CC|\S/)
[cmds.uniq.join,mod]
@@ -695,6 +698,10 @@ module SiSU_Commandline
|| mod.inspect =~/"--git"/) \
? { bool: true, set: :on }
: { bool: false, set: :na }
+ act[:zap]=(cmd =~/Z/ \
+ || mod.inspect =~/"--zap"|"--delete"/) \
+ ? { bool: true, set: :on }
+ : { bool: false, set: :na }
act[:hash_digests]=(cmd =~/N/ \
|| mod.inspect =~/"--hash-digests"/) \
? { bool: true, set: :on }
@@ -731,7 +738,7 @@ module SiSU_Commandline
|| mod.inspect =~/"--urls-all"/) \
? { bool: true, set: :on }
: { bool: false, set: :na }
- act[:urls_seleted]=(cmd =~/u/ \
+ act[:urls_selected]=(cmd =~/u/ \
|| mod.inspect =~/"--urls"/) \
? { bool: true, set: :on }
: { bool: false, set: :na }