From: Martin Mares Date: Mon, 8 Jun 1998 07:54:37 +0000 (+0000) Subject: Now responds to "--version" X-Git-Tag: v3.0.0~329 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=496d40210a97eabca6e0b4771a1706ae95fd3a23;p=pciutils.git Now responds to "--version" --- diff --git a/lspci.c b/lspci.c index 90b2e58..41a7e01 100644 --- a/lspci.c +++ b/lspci.c @@ -1,5 +1,5 @@ /* - * $Id: lspci.c,v 1.11 1998/04/19 11:02:27 mj Exp $ + * $Id: lspci.c,v 1.12 1998/06/08 07:54:37 mj Exp $ * * Linux PCI Utilities -- List All PCI Devices * @@ -858,6 +858,11 @@ main(int argc, char **argv) int i; char *msg; + if (argc == 2 && !strcmp(argv[1], "--version")) + { + puts("lspci version " PCIUTILS_VERSION); + return 0; + } filter_init(&filter); while ((i = getopt(argc, argv, options)) != -1) switch (i)