Skip to content

cmd/tailcat: keep --version working as an unadvertised alias - #49

Merged
bradfitz merged 1 commit into
mainfrom
bradfitz/version
Aug 31, 2026
Merged

cmd/tailcat: keep --version working as an unadvertised alias#49
bradfitz merged 1 commit into
mainfrom
bradfitz/version

Conversation

@bradfitz

Copy link
Copy Markdown
Member

The version subcommand is the documented way to print the version,
but nixpkgs' versionCheckHook runs "tailcat --version" and depends
on its exit status and output. Rather than advertise both in the
global flags, drop the registered --version flag and special-case
it in main when parsing fails: print the version and exit zero if
os.Args contains --version.

The version subcommand is the documented way to print the version,
but nixpkgs' versionCheckHook runs "tailcat --version" and depends
on its exit status and output. Rather than advertise both in the
global flags, drop the registered --version flag and special-case
it in main when parsing fails: print the version and exit zero if
os.Args contains --version.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Change-Id: Id1a7b23938a546b2f2e49ba2c529b009fe7ef9b0
@bradfitz
bradfitz merged commit 4d50a34 into main Aug 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant