#define SET_NAME 'n'
#define SET_OUTPUT 'o'
#define SET_PORT 'p'
+#define JS_API 'j'
#define SET_QUIET 'q'
#define SET_RANDOM_TOKEN 'r'
#define ADD_SET 's'
{ADD_WEAK_LDPATH, 1, "weak-ldpaths","Same as --ldpaths but ignore errors"},
{SET_NO_LDPATH, 0, "no-ldpaths", "Discard default ldpaths loading"},
#endif
+ {JS_API, 1, "jsapi", "Load the javascript api of path"},
+
{SET_TOKEN, 1, "token", "Initial Secret [default=random, use --token="" to allow any token]"},
{SET_RANDOM_TOKEN, 0, "random-token","Enforce a random token"},
#endif
"HOOK "
-#if WITH_TRACE
+#if WITH_AFB_TRACE
"+"
#else
"-"
"["
#if WITH_DYNAMIC_BINDING
- "BINDINGS "
"+"
#else
"-"
#endif
+ "BINDINGS "
#if WITH_LEGACY_BINDING_V1
- "+"
-#else
- "-"
+ "+V1 "
#endif
- "V1 "
#if WITH_LEGACY_BINDING_VDYN
- "+"
-#else
- "-"
+ "+VDYN "
#endif
- "VDYN "
#if WITH_LEGACY_BINDING_V2
- "+"
-#else
- "-"
+ "+V2 "
#endif
- "V2 +V3]\n"
+ "+V3]\n"
"\n",
AFB_VERSION
);
case ADD_WS_CLIENT:
case ADD_WS_SERVICE:
case ADD_AUTO_API:
+ case JS_API:
config_add_optstr(config, optid);
break;