rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment error

TyMost opened this issue · comments

commented

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')
    👍