#include <iostream>
#include "cli.hpp"
-#include "os_path.hpp"
+#include "os_string.hpp"
#include "os_process.hpp"
-#include "trace_tools.hpp"
+#include "trace_resource.hpp"
static const char *synopsis = "Identify differences between two state dumps.";
{
int i;
- for (i = 0; i < argc; ++i) {
+ for (i = 1; i < argc; ++i) {
const char *arg = argv[i];
if (arg[0] != '-') {
file1 = argv[i];
file2 = argv[i+1];
-#define CLI_DIFF_STATE_COMMAND "jsondiff.py"
-
- os::Path command = trace::findFile("scripts/" CLI_DIFF_STATE_COMMAND,
- APITRACE_SCRIPTS_INSTALL_DIR "/" CLI_DIFF_STATE_COMMAND,
- true);
+ os::String command = trace::findScript("jsondiff.py");
char *args[5];