Skip to content

Hua work common - #106

Merged
zaihuaji merged 3 commits into
mainfrom
hua-work-common
May 15, 2026
Merged

zaihuaji merged 3 commits into
mainfrom
hua-work-common

Conversation

@zaihuaji

Copy link
Copy Markdown
Collaborator

No description provided.

zaihuaji and others added 3 commits May 15, 2026 12:01
Adds [tool.setuptools.package-data] so pgpassword.usg (and any
future .usg files) are bundled into the built wheel/sdist and
installed alongside the package. Bumps version to 2.1.9 in
pyproject.toml, __init__.py, and README.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Previously running pgpassword with no arguments triggered the usage
display, so users could not get the password using all defaults. The
no-args path now falls through to start_actions(), which performs the
lookup with the PgDBI/PgLOG defaults (rdadb/dssdb/etc.). Usage is now
requested explicitly via -?, -help, or --help.

Also detects an option supplied without its required value (e.g. -d
with nothing after it) and reports it as an error instead of silently
falling into the help path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 15, 2026 17:16
@zaihuaji
zaihuaji merged commit cd49ad2 into main May 15, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Bumps the package version to 2.1.9 and refines the pgpassword CLI: explicit -?/-help/--help support, stricter validation for stray/missing option values, packaging of .usg usage files, and corresponding documentation/usage-file updates.

Changes:

  • Add -?/-help/--help handling and detect missing option values; remove the "no args ⇒ show usage" behavior so defaults are used instead.
  • Ship *.usg files as package data and bump version to 2.1.9 in pyproject.toml, __init__.py, and README.md.
  • Update pgpassword.usg and the read_parameters docstring to reflect the new behavior; fix excecute typo.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/rda_python_common/pgpassword.py Adds help-flag handling, missing-value detection, improved error messages; fixes "excecute" typo.
src/rda_python_common/pgpassword.usg Documents -?/--help and updated no-arg behavior.
src/rda_python_common/init.py Version bump to 2.1.9.
pyproject.toml Version bump and includes *.usg as package data.
README.md Updates referenced installed version to 2.1.9.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants