From 8a39706d5463f7ac8bcf63c40547b16bb02e4830 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 5 May 2002 18:03:27 +0000 Subject: [PATCH] add -f to help output git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1371 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/eepromer/eeprom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prog/eepromer/eeprom.c b/prog/eepromer/eeprom.c index 8e9e7e8c..70af7808 100644 --- a/prog/eepromer/eeprom.c +++ b/prog/eepromer/eeprom.c @@ -139,12 +139,14 @@ int main(int argc, char **argv){ while((i=getopt(argc,argv,"d:a:p:wyf:h"))>=0){ switch(i){ case 'h': - fprintf(stderr,"%s [-d dev] [-a adr] [-p pgs] [-y] [-w]\n",argv[0]); + fprintf(stderr,"%s [-d dev] [-a adr] [-p pgs] [-w] [-y] [-f file]\n",argv[0]); fprintf(stderr,"\tdev: device, e.g. /dev/i2c-0 (def)\n"); fprintf(stderr,"\tadr: base address of eeprom, eg 0xA0 (def)\n"); fprintf(stderr,"\tpgs: number of pages to read, eg 8 (def)\n"); fprintf(stderr,"\t-w : write to eeprom (default is reading!)\n"); fprintf(stderr,"\t-y : suppress warning when writing (default is to warn!)\n"); + fprintf(stderr,"\t-f file: copy eeprom contents to/from file\n"); + fprintf(stderr,"\t (default for read is test only; for write is all zeros)\n"); fprintf(stderr,"Note on pages/addresses:\n"); fprintf(stderr,"\teeproms with more than 256 byte appear as if they\n"); fprintf(stderr,"\twere several eeproms with consecutive addresses on the bus\n");