rsalmei/alive-progress

Comment error

TyMost opened this issue · 2 comments

You used function “bar.title()” to change the title , but probably forgot to update the comment in the next file. This caused me a bit of a hassle.

... with alive_bar(123, 'Title') as bar: # <-- expected total and bar title

You're right, that is very old, from 2020, and has slipped...
Thanks. I'll commit it now as

     ... with alive_bar(123, title='Title') as bar:  # <-- expected total and bar title 

You can always set/change the title like:

  • bar.title('title')
  • bar.title = 'title'
  • with alive_bar(title='title')
    👍