diff options
author | drh <> | 2024-09-14 16:28:38 +0000 |
---|---|---|
committer | drh <> | 2024-09-14 16:28:38 +0000 |
commit | 3d56d59adc1e0c60ca752e2dd062e78d3927102e (patch) | |
tree | 2f637158d2884307db7c29a0116e6678c2e5d08e /tool/sqlite3-rsync.c | |
parent | 7154803d4ceb57c0c5fcde14fa37811ef67c2ec6 (diff) | |
download | sqlite-3d56d59adc1e0c60ca752e2dd062e78d3927102e.tar.gz sqlite-3d56d59adc1e0c60ca752e2dd062e78d3927102e.zip |
Add the --version option.
FossilOrigin-Name: 9961334c8007e7cb6ae55885075b74acddc4fa701b359cf67e0f3c237d7eba4a
Diffstat (limited to 'tool/sqlite3-rsync.c')
-rw-r--r-- | tool/sqlite3-rsync.c | 5 |
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 |