Remove added regex options from search_term
parent
b39e935c5b
commit
991f4e35ea
|
@ -947,11 +947,11 @@ class Db
|
||||||
|
|
||||||
while (arg = args.shift)
|
while (arg = args.shift)
|
||||||
case arg
|
case arg
|
||||||
when '-a','--add'
|
when '-a', '--add'
|
||||||
mode = :add
|
mode = :add
|
||||||
when '-d','--delete'
|
when '-d', '--delete'
|
||||||
mode = :delete
|
mode = :delete
|
||||||
when '-n','--note'
|
when '-n', '--note'
|
||||||
data = args.shift
|
data = args.shift
|
||||||
if(!data)
|
if(!data)
|
||||||
print_error("Can't make a note with no data")
|
print_error("Can't make a note with no data")
|
||||||
|
@ -967,12 +967,12 @@ class Db
|
||||||
when '-R', '--rhosts'
|
when '-R', '--rhosts'
|
||||||
set_rhosts = true
|
set_rhosts = true
|
||||||
when '-S', '--search'
|
when '-S', '--search'
|
||||||
search_term = /#{args.shift}/nmi
|
search_term = args.shift
|
||||||
when '--sort'
|
when '--sort'
|
||||||
sort_term = args.shift
|
sort_term = args.shift
|
||||||
when '-o', '--output'
|
when '-o', '--output'
|
||||||
out_file = args.shift
|
out_file = args.shift
|
||||||
when '-h','--help'
|
when '-h', '--help'
|
||||||
cmd_notes_help
|
cmd_notes_help
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue