Skip to content

Commit

Permalink
remove version option
Browse files Browse the repository at this point in the history
Your package manager of choice can already provide the same information.
  • Loading branch information
mptre committed Dec 31, 2019
1 parent 91e455b commit 2905675
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ OBJS= ${SRCS:.c=.o}
DEPS= ${SRCS:.c=.d}

CFLAGS+= ${DEBUG}
CFLAGS+= -DVERSION=\"${VERSION}\"

DISTFILES+= CHANGELOG.md
DISTFILES+= CODE_OF_CONDUCT.md
Expand Down Expand Up @@ -62,7 +61,6 @@ DISTFILES+= tests/opt-o.t
DISTFILES+= tests/opt-q.t
DISTFILES+= tests/opt-s.t
DISTFILES+= tests/opt-unknown.t
DISTFILES+= tests/opt-v.t
DISTFILES+= tests/opt-x.t
DISTFILES+= tests/pick-test.c
DISTFILES+= tests/pick-test.sh
Expand Down
4 changes: 1 addition & 3 deletions pick.1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.Nd fuzzy select anything
.Sh SYNOPSIS
.Nm
.Op Fl dhKoSvXx
.Op Fl dhKoSXx
.Op Fl q Ar query
.Sh DESCRIPTION
The
Expand Down Expand Up @@ -46,8 +46,6 @@ Only filter the choices instead of additionally sorting by score.
This option can be toggled from within the interface,
see
.Sx COMMANDS .
.It Fl v
Output the version and exit.
.It Fl x
Enable the use of the alternate screen terminal feature.
This is the default.
Expand Down
8 changes: 2 additions & 6 deletions pick.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ main(int argc, char *argv[])
if (pledge("stdio tty rpath wpath cpath", NULL) == -1)
err(1, "pledge");

while ((c = getopt(argc, argv, "dhoq:KSvxX")) != -1)
while ((c = getopt(argc, argv, "dhoq:KSxX")) != -1)
switch (c) {
case 'd':
descriptions = 1;
Expand All @@ -141,9 +141,6 @@ main(int argc, char *argv[])
case 'S':
sort = 0;
break;
case 'v':
puts(VERSION);
exit(0);
case 'x':
use_alternate_screen = 1;
break;
Expand Down Expand Up @@ -190,9 +187,8 @@ main(int argc, char *argv[])
__dead void
usage(int status)
{
fprintf(stderr, "usage: pick [-dhKoSvXx] [-q query]\n"
fprintf(stderr, "usage: pick [-dhKoSXx] [-q query]\n"
" -h output this help message and exit\n"
" -v output the version and exit\n"
" -K disable toggling of keypad transmit mode\n"
" -S disable sorting\n"
" -d read and display descriptions\n"
Expand Down
1 change: 0 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ TESTS+= opt-o.t
TESTS+= opt-q.t
TESTS+= opt-s.t
TESTS+= opt-unknown.t
TESTS+= opt-v.t
TESTS+= opt-x.t

all: ${PROG}
Expand Down
2 changes: 0 additions & 2 deletions tests/opt-v.t

This file was deleted.

1 comment on commit 2905675

@mike-burns
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

Please sign in to comment.