Fossil SCM

Added --verbose|-v as alias for --full|-f option to /json/stat, per ML discussion. Removed a stray 's' character, probably a result of a mis-pressed Ctrl-S.

stephan 2013-04-27 01:28 trunk
Commit e07e1f662e06384749aa56eb593f34f158227e4d
1 file changed +3 -2
+3 -2
--- src/json.c
+++ src/json.c
@@ -550,11 +550,11 @@
550550
/*
551551
** An extended form of find_option() which tries to look up a combo
552552
** GET/POST/CLI argument.
553553
**
554554
** zKey must be the GET/POST parameter key. zCLILong must be the "long
555
-s** form" CLI flag (NULL means to use zKey). zCLIShort may be NULL or
555
+** form" CLI flag (NULL means to use zKey). zCLIShort may be NULL or
556556
** the "short form" CLI flag (if NULL, no short form is used).
557557
**
558558
** If argPos is >=0 and no other match is found,
559559
** json_command_arg(argPos) is also checked.
560560
**
@@ -2025,11 +2025,12 @@
20252025
if( !g.perm.Read ){
20262026
json_set_err(FSL_JSON_E_DENIED,
20272027
"Requires 'o' permissions.");
20282028
return NULL;
20292029
}
2030
- full = json_find_option_bool("full",NULL,"f",0);
2030
+ full = json_find_option_bool("full",NULL,"f",
2031
+ json_find_option_bool("verbose",NULL,"v",0));
20312032
#define SETBUF(O,K) cson_object_set(O, K, cson_value_new_string(zBuf, strlen(zBuf)));
20322033
20332034
jv = cson_value_new_object();
20342035
jo = cson_value_get_object(jv);
20352036
20362037
--- src/json.c
+++ src/json.c
@@ -550,11 +550,11 @@
550 /*
551 ** An extended form of find_option() which tries to look up a combo
552 ** GET/POST/CLI argument.
553 **
554 ** zKey must be the GET/POST parameter key. zCLILong must be the "long
555 s** form" CLI flag (NULL means to use zKey). zCLIShort may be NULL or
556 ** the "short form" CLI flag (if NULL, no short form is used).
557 **
558 ** If argPos is >=0 and no other match is found,
559 ** json_command_arg(argPos) is also checked.
560 **
@@ -2025,11 +2025,12 @@
2025 if( !g.perm.Read ){
2026 json_set_err(FSL_JSON_E_DENIED,
2027 "Requires 'o' permissions.");
2028 return NULL;
2029 }
2030 full = json_find_option_bool("full",NULL,"f",0);
 
2031 #define SETBUF(O,K) cson_object_set(O, K, cson_value_new_string(zBuf, strlen(zBuf)));
2032
2033 jv = cson_value_new_object();
2034 jo = cson_value_get_object(jv);
2035
2036
--- src/json.c
+++ src/json.c
@@ -550,11 +550,11 @@
550 /*
551 ** An extended form of find_option() which tries to look up a combo
552 ** GET/POST/CLI argument.
553 **
554 ** zKey must be the GET/POST parameter key. zCLILong must be the "long
555 ** form" CLI flag (NULL means to use zKey). zCLIShort may be NULL or
556 ** the "short form" CLI flag (if NULL, no short form is used).
557 **
558 ** If argPos is >=0 and no other match is found,
559 ** json_command_arg(argPos) is also checked.
560 **
@@ -2025,11 +2025,12 @@
2025 if( !g.perm.Read ){
2026 json_set_err(FSL_JSON_E_DENIED,
2027 "Requires 'o' permissions.");
2028 return NULL;
2029 }
2030 full = json_find_option_bool("full",NULL,"f",
2031 json_find_option_bool("verbose",NULL,"v",0));
2032 #define SETBUF(O,K) cson_object_set(O, K, cson_value_new_string(zBuf, strlen(zBuf)));
2033
2034 jv = cson_value_new_object();
2035 jo = cson_value_get_object(jv);
2036
2037

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button