Skip to content

Commit

Permalink
Fixed cli.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Oct 14, 2023
1 parent 5cb01b8 commit 0c710b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/command_line_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ use crate::utils::error::CustomError;

pub fn start_command_line(mut args: Args) {
println!("Starting from command line");
match args.next().unwrap().as_str() {
// This needs to be nth(1) because the first argument is the binary name
match args.nth(1).unwrap().as_str() {
"help" | "--help" => {
println!(r" The following commands are available:
users => Handles user management
Expand Down

0 comments on commit 0c710b4

Please sign in to comment.