summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-25 17:01:42 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-25 17:01:42 (GMT)
commit077e38de11f655ea75e985222057d35e67589a2e (patch)
tree9274d051571bc4a1add68dc0b2757b219932c970
parent89a49d4ae6caea1a0ec9695c9ae3b762463deb34 (diff)
downloadeeshow-077e38de11f655ea75e985222057d35e67589a2e.zip
eeshow-077e38de11f655ea75e985222057d35e67589a2e.tar.gz
eeshow-077e38de11f655ea75e985222057d35e67589a2e.tar.bz2
main/eeplot.c (main, usage): option "-d date" to override sheet date
-rw-r--r--main/eeplot.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main/eeplot.c b/main/eeplot.c
index 5a7c84e..979ece1 100644
--- a/main/eeplot.c
+++ b/main/eeplot.c
@@ -92,7 +92,7 @@ static const struct gfx_ops *find_by_output(int argc, char **argv)
void usage(const char *name)
{
fprintf(stderr,
-"usage: %s -o [type:]output_file [-1] [-e] [-v ...] [driver_opts]\n"
+"usage: %s -o [type:]output_file [-1] [-d date] [-e] [-v ...] [driver_opts]\n"
" %*skicad_file ...\n"
" %s -V\n"
" %s gdb ...\n"
@@ -102,6 +102,8 @@ void usage(const char *name)
" rev git revision\n"
"\n"
" -1 show only one sheet - do not recurse into sub-sheets\n"
+" -d date\n"
+" use the specified string instead of date entries in sheets\n"
" -e show extra information (e.g., pin types)\n"
" -o [type:]output_file\n"
" output file. - for standard output. File type is derived from\n"
@@ -132,7 +134,7 @@ void usage(const char *name)
}
-#define OPTIONS "1ehvL:OPV"
+#define OPTIONS "1d:ehvL:OPV"
int main(int argc, char **argv)
@@ -162,6 +164,9 @@ int main(int argc, char **argv)
case '1':
one_sheet = 1;
break;
+ case 'd':
+ date_override = optarg;
+ break;
case 'e':
extra = 1;
break;