anchor.diff:      T1 = riak_cli_status:text(io_lib:format("Ring ready: ~p~n", [element(2, RingStatus)])),
       T2 = riak_cli_status:text(
              "Key: (C) = Claimant; availability marked with '!' is unexpected"),
  -    Out = riak_cli_status:alert([T0,T1,Table,T2]),
  -    riak_cli:print([Out]).
  +    [riak_cli_status:alert([T0,T1,Table,T2])].
   
   format_status(Node, Status, Ring, RingStatus) ->
       {Claimant, _RingReady, Down, MarkedDown, Changes} = RingStatus,
  
positive.code:            ++ generate_rows(RingSize, secondary, Secondary)
             ++ generate_rows(RingSize, stopped, Stopped),
      Table = riak_cli_status:table(Rows),
      Alert = riak_cli_status:alert([T0, Table]),
      riak_cli:print([Alert]).
  
  generate_rows(_RingSize, Type, []) ->
      [[{type, Type}, {index, "--"}, {id, "--"}]];
  
negative.code:     ].
  
  partition_count_usage() ->
     Text = ["riak-admin cluster partition-count [--node node]\n\n",
              "Returns the number of partitions (ring-size) for the entire\n",
              "cluster or the number of partitions on a specific node."],
      [["riak-admin", "cluster", "partition-count"], Text].
  
  partition_count([], [{node, Node}]) ->
      {ok, Ring} = riak_core_ring_manager:get_my_ring(),
      Indices = riak_core_ring:indices(Ring, Node),
      Row = [[{node, Node}, {partitions, length(Indices)}, {pct, claim_percent(Ring, Node)}]],
      [riak_cli_status:table(Row)];
  partition_count([], []) ->
      {ok, Ring} = riak_core_ring_manager:get_my_ring(),
      [riak_cli_status:text(
           io_lib:format("Cluster-wide partition-count: ~p", 
                         [riak_core_ring:num_partitions(Ring)]))].
  
  %%%
  %% cluster partitions
  %%%
  
  partitions_register() ->
      [["riak-admin", "cluster", "partitions"],      % Cmd
       [],                                           % KeySpecs
       [{node, [{shortname, "n"}, {longname, "node"},
                {typecast, fun list_to_atom/1}]}],   % FlagSpecs
       fun partitions/2].                            % Implementation callback
  
  
  partitions_usage() ->
     Text = ["riak-admin cluster partitions [--node node]\n\n",
             "Returns the partitions which belong to the current node,\n",
             "or to a specific node."],
      [["riak-admin", "cluster", "partitions"], Text].
  
  partitions([], [{node, Node}]) ->
      partitions_output(Node);
  