From 0d356c0b260d96e0001b33a177bebefb53befc96 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 27 Feb 2026 22:14:40 -0700 Subject: [PATCH] feat(cmd/tcpfwd): add description to version/help output Co-Authored-By: Claude Sonnet 4.6 --- cmd/tcpfwd/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/tcpfwd/main.go b/cmd/tcpfwd/main.go index 136d907..3a03a36 100644 --- a/cmd/tcpfwd/main.go +++ b/cmd/tcpfwd/main.go @@ -18,6 +18,7 @@ import ( const ( name = "tcpfwd" + description = "TCP port forwarder - bridge local ports to remote hosts" licenseYear = "2025" licenseOwner = "AJ ONeal (https://therootcompany.com)" licenseType = "CC0-1.0" @@ -30,9 +31,10 @@ var ( date = "0001-01-01" ) -// printVersion displays the version, commit, and build date. +// printVersion displays the version, commit, build date, and description. func printVersion(w io.Writer) { _, _ = fmt.Fprintf(w, "%s v%s %s (%s)\n", name, version, commit[:7], date) + _, _ = fmt.Fprintf(w, "%s\n", description) _, _ = fmt.Fprintf(w, "Copyright (C) %s %s\n", licenseYear, licenseOwner) _, _ = fmt.Fprintf(w, "Licensed under %s\n", licenseType) }