Skip to content

Commit

Permalink
fix reading image from stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
iynaix committed Sep 15, 2024
1 parent 2408c0b commit 45ce14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ fn parse_bezier(raw: &str) -> Result<(f32, f32, f32, f32), String> {

pub fn parse_image(raw: &str) -> Result<CliImage, String> {
let path = PathBuf::from(raw);
if path.exists() {
if raw == "-" || path.exists() {
return Ok(CliImage::Path(path));
}
if let Some(color) = raw.strip_prefix("0x") {
Expand Down

0 comments on commit 45ce14c

Please sign in to comment.