Revert "Fix #705 (--argfile weirdness)"

This reverts commit 3d2ab93b11.
This commit is contained in:
Nicolas Williams committed 2015-05-29 10:38:08 -05:00
1 parent 6af7857ccd
commit 89c57f7936
2 files changed
+3 -3

No files matched your search

+2
View File
@@ -320,6 +320,8 @@ int main(int argc, char* argv[]) {
ret = 2;
goto out;
}
if (jv_get_kind(data) == JV_KIND_ARRAY && jv_array_length(jv_copy(data)) == 1)
data = jv_array_get(data, 0);
arg = jv_object_set(arg, jv_string("value"), data);
program_arguments = jv_array_append(program_arguments, arg);
i += 2; // skip the next two arguments