Print out version information when invoked.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@7 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
3517471a22
commit
f194e44f8f
|
@ -57,6 +57,8 @@
|
||||||
|
|
||||||
#define PARALLEL "/dev/ppi0"
|
#define PARALLEL "/dev/ppi0"
|
||||||
|
|
||||||
|
char * version = "$Id$";
|
||||||
|
|
||||||
char * progname;
|
char * progname;
|
||||||
|
|
||||||
|
|
||||||
|
@ -581,6 +583,8 @@ int main ( int argc, char * argv [] )
|
||||||
else
|
else
|
||||||
progname = argv[0];
|
progname = argv[0];
|
||||||
|
|
||||||
|
fprintf(stderr, "%s, Version Information: %s\n", progname, version);
|
||||||
|
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
usage();
|
usage();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue