naelstrof / maim

maim (make image) takes screenshots of your desktop. It has options to take only a region, and relies on slop to query for regions. maim is supposed to be an improved scrot.
Other
2.15k stars 78 forks source link

-i requires an argument #153

Closed ChrisLane closed 3 years ago

ChrisLane commented 5 years ago

Trying to run maim -iu image.png doesn't work anymore, instead an error is outputted:

terminate called after throwing an instance of 'cxxopts::option_requires_argument_exception'
  what():  Option ‘i’ requires an argument
zsh: abort (core dumped)  maim -iu image.png

According to the man page the -i option "defaults to the root window" and so this error shouldn't occur.

MarkusG commented 3 years ago

This seems to be an issue in the manpage wording. -i does require an argument. maim will capture the root window if -i is not specified. See -w for an example of better wording:

-w, --parent=WINDOW
              By default, maim assumes the --geometry values are in  respect  to  the
              provided  --window  (or root if not provided). This parameter overrides
              this behavior by making the geometry be in respect to  whatever  window
              you  provide to --parent. Allows for an integer, hex, or `root` for in‐
              put.