From ba00d360814cb5448bf9134c1161a6f227572e3d Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Wed, 4 May 2022 02:15:42 -0400 Subject: [PATCH] Add a notice when the end is reached. --- utilities/enissue.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utilities/enissue.py b/utilities/enissue.py index 5b23e15..9a324d6 100755 --- a/utilities/enissue.py +++ b/utilities/enissue.py @@ -2421,9 +2421,13 @@ def main(custom_args=None): print("to see additional pages.") else: - print("{} issue(s) matched {}".format( + pageMsg = "." + if repo.page is not None: + pageMsg = " (There are no more pages)." + print("{} issue(s) matched {}{}".format( match['count'], - " + ".join("'{}'".format(s) for s in match_all_labels) + " + ".join("'{}'".format(s) for s in match_all_labels), + pageMsg, )) else: @@ -2453,6 +2457,8 @@ def main(custom_args=None): print() print("To view details of one of these issues, type") print(" ./" + me) + # print(" {}".format(custom_args[0])) + # ^ Doesn't help: changes to full path including $PATH print("followed by a number.") elif total_count >= repo.page_size: print("* There were {} matches by the end of the page so"