Skip to content

Commit

Permalink
doc: zung_mini probar - Cli documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan26 committed Oct 1, 2024
1 parent 2d6a530 commit ac44b6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zung_mini/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,28 @@ enum MiniCommands {
#[derive(Clone, Subcommand, Debug)]
#[command(arg_required_else_help = true)]
enum ProgBarCommands {
/// Runs the progbar on an simulated infinite loop.
UnBounded {
/// Custom message to display along with the spinner.
#[arg(short, long, default_value_t = String::from("Simulating Loading..."))]
message: String,
},

/// Runs the progbar on an simulated loop having len of iter_count.
Bounded {
/// Custom starting delimiter for the loading bar.
#[arg(long, default_value_t = String::from("["))]
delim_start: String,

/// Custom ending delimiter for the loading bar.
#[arg( long, default_value_t = String::from("]"))]
delim_close: String,

/// Custom bar style. Each value specified will be repeated on each iteration.
#[arg(long, default_value_t = String::from("#"))]
bar_style: String,

/// Set custom length of the loop.
#[arg(short, long, default_value_t = 50)]
iter_count: u8,
},
Expand Down

0 comments on commit ac44b6a

Please sign in to comment.