anchor.diff:                 {list,  $l,        "list",  undefined,      "Describe available diagnostic tasks"             },
                  {usage, $h,        "help",  undefined,      "Display help/usage"                              },
                  % should we calc and interpolate the actual cwd for the below?
  -               {export,undefined, "export",undefined,      "Package system info in '$CWD/export.zip'"        }
  +               {export,undefined, "export",undefined,      "Package system info in '$CWD/export.zip'"        },
  +               {terms, $m,        undefined, undefined,      "Emit machine readable output"                  },
  +               {terms, undefined, "mr_out",  {string, stdin},"Emit machine readable output to file <mr_out>" }
                 ]).
   
   -define(USAGE_OPTS, [ O || O <- ?OPTS,
                              element(5,O) =/= undefined]).
  +
  +-define(MR_OUTPUT_VSN, 1).
   
   %% @doc The main entry point for the riaknostic escript.
   -spec main(CommandLineArguments::[string()]) -> any().
  
positive.code:                     io:format("No diagnostic messages to report.~n"),
                      halt(0);
                  _ ->
                      lists:foreach(fun riaknostic_check:print/1, SortedMessages),
                      halt(1)
              end
      end.
  
  validate_checks(Check, {Mods, SNames}) ->
      case lists:keyfind(Check, 1, SNames) of
          {Check, Mod} ->
  
negative.code: process_option(usage, _) ->
      usage;
  process_option(export, _) ->
      export;
  process_option(terms, Result) ->
      process_option({terms, stdin}, Result);
  process_option({terms, Path}, Result) ->
      application:set_env(riaknostic, terms, true),
      application:set_env(riaknostic, term_target, Path),
      Result.
  