Add --version flag to both client and server binaries #52
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Neither the client (
src/client/client_cli.c) nor the server (src/server/server.c) supports a--versionflag. ThePROTOCOL_VERSIONmacro exists insrc/shared/config.has1.2.0, but there is no way for users to query the version at runtime.Location
src/client/client_cli.c(around line 83, where--helpis handled)src/server/server.c(around line 149, where--helpis handled)Suggested Fix
Add a
--versionflag handler in both binaries that prints the version string fromPROTOCOL_VERSIONand exits successfully:Consider defining a separate
FASTSYNC_VERSIONmacro for the application version distinct from the protocol version.Severity
Low
Category
Enhancement