Commits

Anonymous committed 2116bdb

Add usage message for riaksearch-admin cluster_info command in the riak-admin script to be consistent with the way usage messages are handled by other commands.

  • Participants
  • Parent commits bd39e1d

Comments (0)

Files changed (1)

rel/files/riaksearch-admin

         ;;
 
     cluster_info)
+        if [ $# -lt 2 ]; then
+            echo "Usage: $SCRIPT cluster_info <output_file> ['local' | <node> ['local' | <node>] [...]]"
+            exit 1
+        fi
+
         # Make sure the local node IS running
         RES=`$NODETOOL ping`
         if [ "$RES" != "pong" ]; then