Skip to content

Commit

Permalink
cli: use format specifier for default values in help
Browse files Browse the repository at this point in the history
TIL this was even an option.
  • Loading branch information
enku committed Aug 30, 2024
1 parent 3d9b63d commit 7289434
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gentoo_build_publisher/cli/addmachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ def parse_args(parser: argparse.ArgumentParser) -> None:
repo_help = "(git) URL that contains the machine's pipeline script"
parser.add_argument("repo", type=str, metavar="REPO", help=repo_help)

branch_help = "git branch to pull from (default: master)"
branch_help = "git branch to pull from (default: %(default)s)"
parser.add_argument(
"--branch", type=str, metavar="BRANCH", default="master", help=branch_help
)

deps_help = "List of ebuild repos the machine depends on (default: gentoo)"
deps_help = "List of ebuild repos the machine depends on (default: %(default)s)"
parser.add_argument(
"--deps",
"-d",
Expand Down
2 changes: 1 addition & 1 deletion src/gentoo_build_publisher/cli/addrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse_args(parser: argparse.ArgumentParser) -> None:
repo_help = "(git) URL for the ebuild repo"
parser.add_argument("repo", type=str, metavar="REPO", help=repo_help)

branch_help = "git branch to pull from (default: master)"
branch_help = "git branch to pull from (default: %(default)s)"
parser.add_argument(
"--branch", type=str, metavar="BRANCH", default="master", help=branch_help
)

0 comments on commit 7289434

Please sign in to comment.