Skip to content

Commit 1c8d62a

Browse files
committed
Land rapid7#19129, Add missing '-S' to cmd_notes
2 parents 1e4e62d + cadda6f commit 1c8d62a

File tree

2 files changed

+6
-4
lines changed
  • lib/msf/ui/console/command_dispatcher
  • spec/lib/msf/ui/console/command_dispatcher

2 files changed

+6
-4
lines changed

lib/msf/ui/console/command_dispatcher/db.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,12 +1230,13 @@ def cmd_notes_help
12301230
@@notes_opts = Rex::Parser::Arguments.new(
12311231
[ '-a', '--add' ] => [ false, 'Add a note to the list of addresses, instead of listing.' ],
12321232
[ '-d', '--delete' ] => [ false, 'Delete the notes instead of searching.' ],
1233-
[ '-n', '--note' ] => [ true, 'Set the data for a new note (only with -a).', '<note>' ],
1234-
[ '-t', '--type' ] => [ true, 'Search for a list of types, or set single type for add.', '<type1,type2>' ],
12351233
[ '-h', '--help' ] => [ false, 'Show this help information.' ],
1236-
[ '-R', '--rhosts' ] => [ false, 'Set RHOSTS from the results of the search.' ],
1237-
[ '-o', '--output' ] => [ true, 'Save the notes to a csv file.', '<filename>' ],
1234+
[ '-n', '--note' ] => [ true, 'Set the data for a new note (only with -a).', '<note>' ],
12381235
[ '-O', '--order' ] => [ true, 'Order rows by specified column number.', '<column id>' ],
1236+
[ '-o', '--output' ] => [ true, 'Save the notes to a csv file.', '<filename>' ],
1237+
[ '-R', '--rhosts' ] => [ false, 'Set RHOSTS from the results of the search.' ],
1238+
[ '-S', '--search' ] => [ true, 'Search string to filter by.', '<filter>' ],
1239+
[ '-t', '--type' ] => [ true, 'Search for a list of types, or set single type for add.', '<type1,type2>' ],
12391240
[ '-u', '--update' ] => [ false, 'Update a note. Not officially supported.' ]
12401241
)
12411242

spec/lib/msf/ui/console/command_dispatcher/db_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
" -O, --order <column id> Order rows by specified column number.",
181181
" -o, --output <filename> Save the notes to a csv file.",
182182
" -R, --rhosts Set RHOSTS from the results of the search.",
183+
" -S, --search <filter> Search string to filter by.",
183184
" -t, --type <type1,type2> Search for a list of types, or set single type for add.",
184185
" -u, --update Update a note. Not officially supported.",
185186
"",

0 commit comments

Comments
 (0)