Skip to content

Commit

Permalink
Land #19129, Add missing '-S' to cmd_notes
Browse files Browse the repository at this point in the history
  • Loading branch information
smcintyre-r7 committed Apr 24, 2024
2 parents 1e4e62d + cadda6f commit 1c8d62a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/msf/ui/console/command_dispatcher/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1230,12 +1230,13 @@ def cmd_notes_help
@@notes_opts = Rex::Parser::Arguments.new(
[ '-a', '--add' ] => [ false, 'Add a note to the list of addresses, instead of listing.' ],
[ '-d', '--delete' ] => [ false, 'Delete the notes instead of searching.' ],
[ '-n', '--note' ] => [ true, 'Set the data for a new note (only with -a).', '<note>' ],
[ '-t', '--type' ] => [ true, 'Search for a list of types, or set single type for add.', '<type1,type2>' ],
[ '-h', '--help' ] => [ false, 'Show this help information.' ],
[ '-R', '--rhosts' ] => [ false, 'Set RHOSTS from the results of the search.' ],
[ '-o', '--output' ] => [ true, 'Save the notes to a csv file.', '<filename>' ],
[ '-n', '--note' ] => [ true, 'Set the data for a new note (only with -a).', '<note>' ],
[ '-O', '--order' ] => [ true, 'Order rows by specified column number.', '<column id>' ],
[ '-o', '--output' ] => [ true, 'Save the notes to a csv file.', '<filename>' ],
[ '-R', '--rhosts' ] => [ false, 'Set RHOSTS from the results of the search.' ],
[ '-S', '--search' ] => [ true, 'Search string to filter by.', '<filter>' ],
[ '-t', '--type' ] => [ true, 'Search for a list of types, or set single type for add.', '<type1,type2>' ],
[ '-u', '--update' ] => [ false, 'Update a note. Not officially supported.' ]
)

Expand Down
1 change: 1 addition & 0 deletions spec/lib/msf/ui/console/command_dispatcher/db_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@
" -O, --order <column id> Order rows by specified column number.",
" -o, --output <filename> Save the notes to a csv file.",
" -R, --rhosts Set RHOSTS from the results of the search.",
" -S, --search <filter> Search string to filter by.",
" -t, --type <type1,type2> Search for a list of types, or set single type for add.",
" -u, --update Update a note. Not officially supported.",
"",
Expand Down

0 comments on commit 1c8d62a

Please sign in to comment.