diff --git a/lib/ronin/db/cli/commands/people.rb b/lib/ronin/db/cli/commands/people.rb index 03a2fd68..e41b1c1a 100644 --- a/lib/ronin/db/cli/commands/people.rb +++ b/lib/ronin/db/cli/commands/people.rb @@ -42,6 +42,7 @@ module Commands # --import FILE Imports the values from the FILE into the database # --delete VALUE Deletes a value from the database # --delete-all Deletes all values from the database + # -A, --for-address ADDRESS Searches for all People associated with the street address # -P, --with-prefix PREFIX Searches for all People with the prefix # -f, --with-first-name NAME Searches for all People with the first name # -m, --with-middle-name NAME Searches for all People with the middle name @@ -60,6 +61,15 @@ class People < ModelCommand model_file 'ronin/db/person' model_name 'Person' + option :for_address, short: '-A', + value: { + type: String, + usage: 'ADDRESS' + }, + desc: 'Searches for all People associated with the street address' do |address| + @query_method_calls << [:for_address, [address]] + end + option :with_prefix, short: '-P', value: { type: String, diff --git a/man/ronin-db-people.1.md b/man/ronin-db-people.1.md index c44d5310..8eea939b 100644 --- a/man/ronin-db-people.1.md +++ b/man/ronin-db-people.1.md @@ -30,6 +30,9 @@ Queries people. `-v`, `--verbose` : Enable verbose output. +`-A`, `--for-address` *ADDRESS* +: Searches for all People associated with the street address. + `-P`, `--with-prefix` *PREIFX* : Searches for all People with the given prefix.