aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/options.rb
diff options
context:
space:
mode:
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 }