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

Do not crash when invalid cmd args are provided. #226

Closed ghost closed 3 years ago

ghost commented 3 years ago

Before:

$ maim --invalid-arg
terminate called after throwing an instance of 'cxxopts::option_not_exists_exception'
  what():  Option ‘invalid-arg’ does not exist
[1]    30059 abort (core dumped)  maim --invalid-arg

After:

$ maim --invalid-arg
Option ‘invalid-arg’ does not exist
Try "maim --help" for more information.