aboutsummaryrefslogtreecommitdiff
path: root/tool/sqlite3-rsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'tool/sqlite3-rsync.c')
-rw-r--r--tool/sqlite3-rsync.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tool/sqlite3-rsync.c b/tool/sqlite3-rsync.c
index f581ba84b..2a58125aa 100644
--- a/tool/sqlite3-rsync.c
+++ b/tool/sqlite3-rsync.c
@@ -34,6 +34,7 @@ static const char zUsage[] =
" --help Show this help screen\n"
" --ssh PATH Name of the SSH program used to reach the remote side\n"
" -v Verbose. Multiple v's for increasing output\n"
+ " --version Show detailed version information\n"
;
typedef unsigned char u8;
@@ -1655,6 +1656,10 @@ int main(int argc, char const * const *argv){
printf("%s", zUsage);
return 0;
}
+ if( strcmp(z, "--version")==0 ){
+ printf("%s\n", sqlite3_sourceid());
+ return 0;
+ }
if( z[0]=='-' ){
if( strcmp(z,"--commcheck")==0 ){ /* DEBUG ONLY */
/* Run a communication check with the remote side. Do not attempt