Add a --arg option to allow variables to be passed from the cmdline.

Closes #107
This commit is contained in:
Stephen Dolan committed 2013-05-06 14:21:00 +01:00
1 parent 48be23233a
commit 5be97463ec
7 files changed
+46 -6

No files matched your search

+4
View File
@@ -3,8 +3,12 @@
#include "bytecode.h"
struct bytecode* jq_compile(const char* str);
/* args must be an array of the form [{name:"foo", value:"thing"}, {name:"bar",value:3}] */
struct bytecode* jq_compile_args(const char* str, jv args);
typedef struct jq_state jq_state;
enum {JQ_DEBUG_TRACE = 1};