Skip to content

Print help to stdout - #19170

Merged
Mytherin merged 1 commit into
duckdb:mainfrom
staticlibs:help_stdout
Sep 29, 2025
Merged

Mytherin merged 1 commit into
duckdb:mainfrom
staticlibs:help_stdout

Conversation

@staticlibs

Copy link
Copy Markdown
Member

This PR changes the -help output from stderr (inherited from SQLite) to stdout and changes its exit status to 0 to follow GNU Coding Standards:

4.8.2 --help
The standard --help option should output brief documentation for how
to invoke the program, on standard output, then exit successfully.

Testing: new shell test added.

Fixes: #19003

This PR changes the `-help` output from `stderr` (inherited from SQLite)
to `stdout` and changes its exit status to `0` to follow [GNU Coding
Standards](https://www.gnu.org/prep/standards/standards.html):

> 4.8.2 --help
> The standard --help option should output brief documentation for how
> to invoke the program, on standard output, then exit successfully.

Testing: new shell test added.

Fixes: duckdb#19003
@Mytherin
Mytherin merged commit 796cedb into duckdb:main Sep 29, 2025
41 checks passed
@Mytherin

Copy link
Copy Markdown
Collaborator

Thanks!

krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Oct 21, 2025
Fix missing replacement scan code for CTEs (duckdb/duckdb#19159)
Validate filesystem registration (duckdb/duckdb#19168)
Print help to stdout (duckdb/duckdb#19170)
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Nov 1, 2025
Fix missing replacement scan code for CTEs (duckdb/duckdb#19159)
Validate filesystem registration (duckdb/duckdb#19168)
Print help to stdout (duckdb/duckdb#19170)
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Nov 2, 2025
Fix missing replacement scan code for CTEs (duckdb/duckdb#19159)
Validate filesystem registration (duckdb/duckdb#19168)
Print help to stdout (duckdb/duckdb#19170)
krlmlr added a commit to krlmlr/duckdb-r-old that referenced this pull request Nov 2, 2025
Fix missing replacement scan code for CTEs (duckdb/duckdb#19159)
Validate filesystem registration (duckdb/duckdb#19168)
Print help to stdout (duckdb/duckdb#19170)
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.

duckdb.exe -help on Windows directs the output to STDERR instead of STDOUT

2 participants