Skip to contents

This function prints a progress bar to the console to indicate the progress of a process.

Usage

print_progress(current, total, bar_width = 50)

Arguments

current

An integer specifying the current progress.

total

An integer specifying the total steps for the process.

bar_width

An integer specifying the width of the progress bar. Default is 50.