aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-27 01:41:27 -0800
committerelijah <elijah@riseup.net>2012-11-27 01:41:27 -0800
commita33c6879454c8050dd4c9a3d29b656f492daee16 (patch)
treec28f1ffaaaa0ae3e97ed7f782b0a3fcf47745180 /lib
parent6b5d2b1fd03fa300c5fe21915cda28cb97f63225 (diff)
downloadleap_cli-a33c6879454c8050dd4c9a3d29b656f492daee16.tar.gz
leap_cli-a33c6879454c8050dd4c9a3d29b656f492daee16.tar.bz2
add long description to 'leap list'
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/list.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/list.rb b/lib/leap_cli/commands/list.rb
index 5f455c0..42f2996 100644
--- a/lib/leap_cli/commands/list.rb
+++ b/lib/leap_cli/commands/list.rb
@@ -3,8 +3,14 @@ require 'command_line_reporter'
module LeapCli; module Commands
desc 'List nodes and their classifications'
- long_desc 'Prints out a listing of nodes, services, or tags.'
- arg_name 'filter'
+ long_desc 'Prints out a listing of nodes, services, or tags. ' +
+ 'The node-filter can be a list of names of nodes, services, or tags. ' +
+ 'If the name is prefixed with +, this acts like an AND condition. ' +
+ "For example:\n\n" +
+ " * node1 node2 -> matches all nodes named \"node1\" OR \"node2\"\n\n" +
+ " * openvpn +local -> matches all nodes with service \"openvpn\" AND tag \"local\""
+
+ arg_name '[node-filter]', :optional => true
command :list do |c|
c.flag 'print', :desc => 'What attributes to print (optional)'
c.action do |global_options,options,args|