Skip to content

Commit

Permalink
add version info to --help
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Speith committed Nov 2, 2010
1 parent 495e30d commit 5737e03
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>

#include "../config.h"
#include "constants.h"
#include "filter.h"
#include "dvb_epg.h"
Expand All @@ -46,6 +47,9 @@
#include "freesat_test.h" // only required during test mode
#include "tuner.h"

#define STRINGIFY2(a) #a /**< Helper for #STRINGIFY */
#define STRINGIFY(a) STRINGIFY2(a) /**< Convert \a a into a quoted string */

char *ProgName;

int adapter = 0;
Expand Down Expand Up @@ -253,6 +257,9 @@ static int do_options(int arg_count, char **arg_strings) {
break;
case 'h':
case '?':

//#define VERSION 0.2
fprintf(stderr, "tv_grab_dvb_plus v" VERSION "\n");
usage();
break;
case 'I':
Expand Down

0 comments on commit 5737e03

Please sign in to comment.