Skip to content

Commit

Permalink
Deprecate -S (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
guijan authored Apr 10, 2023
1 parent 75664ef commit dc65e96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions man/scrot.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ NAME

SYNOPSIS
scrot [-bcfhimopuvz] [-a X,Y,W,H] [-C NAME] [-D DISPLAY] [-d SEC] [-e CMD]
[-k OPT] [-l STYLE] [-M NUM] [-n OPTS] [-q NUM] [-S CMD] [-s OPTS]
[-t % | WxH] [-w NUM] [[-F] FILE]
[-k OPT] [-l STYLE] [-M NUM] [-n OPTS] [-q NUM] [-s OPTS] [-t % | WxH]
[-w NUM] [[-F] FILE]

DESCRIPTION
scrot (SCReenshOT) is a simple command line screen capture utility, it uses
Expand Down Expand Up @@ -58,7 +58,6 @@ OPTIONS
compression. For lossy output formats, a higher
value represents higher quality and larger
file size. Default: 75.
-S, --script CMD CMD is an imlib2 script.
-s, --select[=OPTS] Interactively select a window or rectangle with the
mouse, use the arrow keys to resize. See the -l and
-f options. OPTS it's optional; see SELECTION MODE
Expand Down
2 changes: 1 addition & 1 deletion src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ static void showUsage(void)
fputs(/* Check that everything lines up after any changes. */
"usage: " PACKAGE " [-bcfhimopuvz] [-a X,Y,W,H] [-C NAME] [-D DISPLAY]\n"
" [-d SEC] [-e CMD] [-k OPT] [-l STYLE] [-M NUM] [-n OPTS]\n"
" [-q NUM] [-S CMD] [-s OPTS] [-t % | WxH] [[-F] FILE]\n",
" [-q NUM] [-s OPTS] [-t % | WxH] [[-F] FILE]\n",
stdout);
exit(0);
}
Expand Down
2 changes: 2 additions & 0 deletions src/scrot.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ void scrotGrabMousePointer(const Imlib_Image image, const int xOffset,
// It assumes that the local variable 'scrot.c:Imlib_Image image' is in context
static void applyFilterIfRequired(void)
{
warnx("--script is deprecated. See: "
"https://github.com/resurrecting-open-source-projects/scrot/pull/231");
if (opt.script)
imlib_apply_filter(opt.script);
}
Expand Down

0 comments on commit dc65e96

Please sign in to comment.