russelltg / wl-screenrec

High performance wlroots screen recording, featuring hardware encoding
Apache License 2.0
305 stars 9 forks source link

Unexpected argument when using negative position #43

Closed wvffle closed 10 months ago

wvffle commented 10 months ago

I wanted to record my screen and I have my main display set up on the negative coordinates. When I tried to use slurp to get the geometry, wl-screenrec threw an error.

[nix-shell:~/workspace/api-v2-specs]$ wl-screenrec --geometry "$(slurp)"
error: unexpected argument '-9' found

Usage: wl-screenrec [OPTIONS]

For more information, try '--help'.

[nix-shell:~/workspace/api-v2-specs]$ slurp
-969,-1289 1229x1207

[nix-shell:~/workspace/api-v2-specs]$ wl-screenrec --geometry '-969,-1289 1229x1207'
error: unexpected argument '-9' found

Usage: wl-screenrec [OPTIONS]

For more information, try '--help'.
russelltg commented 10 months ago

Good report thank you!! Will fix shortly.

russelltg commented 10 months ago

Repro'd and fixed