diff --git a/man/scrot.txt b/man/scrot.txt index cda3149..d22aced 100644 --- a/man/scrot.txt +++ b/man/scrot.txt @@ -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 @@ -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 diff --git a/src/options.c b/src/options.c index 31a7b3f..56846e8 100644 --- a/src/options.c +++ b/src/options.c @@ -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); } diff --git a/src/scrot.c b/src/scrot.c index cfc9432..3697224 100644 --- a/src/scrot.c +++ b/src/scrot.c @@ -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); }