lib/ronin/ui/cli/commands/hosts.rb in ronin-1.4.0.rc1 vs lib/ronin/ui/cli/commands/hosts.rb in ronin-1.4.0.rc2
- old
+ new
@@ -1,7 +1,7 @@
#
-# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
+# Copyright (c) 2006-2012 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This file is part of Ronin.
#
# Ronin is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -23,14 +23,39 @@
module Ronin
module UI
module CLI
module Commands
#
- # The `ronin-hosts` command.
+ # Manages {HostName HostNames}.
#
+ # ## Usage
+ #
+ # ronin hosts [options]
+ #
+ # ## Options
+ #
+ # -v, --[no-]verbose Enable verbose output.
+ # -q, --[no-]quiet Disable verbose output.
+ # --[no-]silent Silence all output.
+ # --[no-]color Enables color output.
+ # --database [URI] The Database URI.
+ # --[no-]csv CSV output.
+ # --[no-]xml XML output.
+ # --[no-]yaml YAML output.
+ # --[no-]json JSON output.
+ # -i, --import [FILE]
+ # -I, --with-ips [IP [...]]
+ # -p, --with-ports [PORT [...]]
+ # -D, --domain [DOMAIN]
+ # -T, --tld [TLD]
+ # -l, --[no-]list Default: true
+ # -L, --lookup [IP]
+ #
class Hosts < ResourcesCommand
model HostName
+
+ summary 'Manages HostNames'
query_option :with_ips, :type => Array,
:flag => '-I',
:usage => 'IP [...]'