We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4dcfae commit 425eb4eCopy full SHA for 425eb4e
linodecli/configuration/helpers.py
@@ -188,6 +188,9 @@ def _default_thing_input(
188
189
190
def _pad_index(idx: int, total: int) -> str:
191
+ # NOTE: The implementation of this function could be less opaque if we're
192
+ # willing to say, "There will never be a case where total > X, because no
193
+ # one could examine and choose from that many options."
194
max_padding = math.floor(math.log10(total)) + 1
195
num_spaces = max_padding - math.floor(math.log10(idx))
196
0 commit comments