From 5ce45a2ca3ec6b53d843a2efd3f3467c238b6d7f Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 16 Jul 2025 13:39:27 -0400 Subject: [PATCH] build-integration-branch: convert to argparse Convert build-integration-branch to use the stdlib argparse module. Argparse is: * Part of the python standard library and available since 3.2 * Well documented as a stdlib component * Widely used * Fairly simple and direct docopt is: * Clever * Not documented as a dependency of this script (so I bet most users are relying on the fallback behavior) * Of questionable maintenance status with: - No releases since 2014 - Only four PRs merged since 2019 - Last merged PR was merged, recommending an alternate repo, and then disappeared from the commit history of the master branch, indicating a possible maintainership/status discrepancy - Only a couple of commits merged since 2018 (visible on github) * In my opinion: not particularly ergonomic esp. wrt dictionary based key access I feel pretty comfortable making this conversion as I think it will make the script easier to maintain and extend. Signed-off-by: John Mulligan --- src/script/build-integration-branch | 75 +++++++++++++++++------------ 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/src/script/build-integration-branch b/src/script/build-integration-branch index 95ee5a1adca48..c4e39fdd67a14 100755 --- a/src/script/build-integration-branch +++ b/src/script/build-integration-branch @@ -13,17 +13,9 @@ OR adding an entry like the following to `~/.netrc`: machine github.com password ghp_E7ln0tAR34LtoK3nIsw34RyTve2moM3BvK ``` - - -Usage: - build-integration-branch