Skip to content

Commit

Permalink
fix: Ensure that we read the git ignore path as a pathbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Dec 26, 2022
1 parent 5ef8ebc commit 8c146cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::async_trait;
use super::online::gitignore;
use super::Command;
use super::*;
use clap::{Arg, ArgMatches};
use clap::{value_parser, Arg, ArgMatches};

pub struct IgnoreCommand {}

Expand All @@ -22,7 +22,8 @@ impl Command for IgnoreCommand {
.help("The path to the .gitignore file you wish to update.")
.default_value(".gitignore")
.value_name("GITIGNORE")
.action(clap::ArgAction::Set))
.action(clap::ArgAction::Set)
.value_parser(value_parser!(std::path::PathBuf)))
.arg(Arg::new("language")
.help("The name of a language which should be added to your .gitignore file.")
.action(clap::ArgAction::Append)
Expand Down

0 comments on commit 8c146cc

Please sign in to comment.