diff options
Diffstat (limited to 'lib/sisu/v3/options.rb')
-rw-r--r-- | lib/sisu/v3/options.rb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb index 82306079..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 } @@ -782,7 +789,11 @@ module SiSU_Commandline @lng_base end def fno - @fno + @fno=if @fno and not @fno.empty? + @fno + else + fns[/(.+?(?:sst|ssm))(?:\.sst)?/,1] + end end def fns @fns |