mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 04:17:06 +08:00
Print deprecation warnings before usage info
This commit is contained in:
parent
c137d64d13
commit
ee5834d239
@ -35,17 +35,17 @@ char quote_text = 1;
|
||||
int count = 0;
|
||||
int started;
|
||||
|
||||
fputs("mdb-array is deprecated and will disappear in a future version of mdbtools.\n", stderr);
|
||||
fputs("Please drop us a line if you have any use of it.\n", stderr);
|
||||
fputs("See https://github.com/mdbtools/mdbtools/issues/197\n", stderr);
|
||||
fputs("\n", stderr);
|
||||
|
||||
if (argc < 3)
|
||||
{
|
||||
fprintf (stderr, "Usage: %s <file> <table>\n", argv [0]);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
fputs("mdb-array is deprecated and will disappear in a future version of mdbtools.\n", stderr);
|
||||
fputs("Please drop us a line if you have any use of it.\n", stderr);
|
||||
fputs("See https://github.com/mdbtools/mdbtools/issues/197\n", stderr);
|
||||
fputs("\n", stderr);
|
||||
|
||||
mdb = mdb_open (argv [1], MDB_NOFLAGS);
|
||||
if (!mdb)
|
||||
exit(1);
|
||||
|
@ -42,16 +42,16 @@ FILE *typesfile;
|
||||
FILE *headerfile;
|
||||
FILE *cfile;
|
||||
|
||||
if (argc < 2) {
|
||||
fprintf (stderr, "Usage: %s <file>\n",argv[0]);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
fputs("mdb-header is deprecated and will disappear in a future version of mdbtools.\n", stderr);
|
||||
fputs("Please drop us a line if you have any use of it.\n", stderr);
|
||||
fputs("See https://github.com/mdbtools/mdbtools/issues/197\n", stderr);
|
||||
fputs("\n", stderr);
|
||||
|
||||
if (argc < 2) {
|
||||
fprintf (stderr, "Usage: %s <file>\n",argv[0]);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
/* open the database */
|
||||
|
||||
mdb = mdb_open (argv[1], MDB_NOFLAGS);
|
||||
|
@ -53,17 +53,17 @@ main (int argc, char **argv)
|
||||
int lastcomma;
|
||||
int i;
|
||||
|
||||
fputs("mdb-parsecsv is deprecated and will disappear in a future version of mdbtools.\n", stderr);
|
||||
fputs("Please drop us a line if you have any use of it.\n", stderr);
|
||||
fputs("See https://github.com/mdbtools/mdbtools/issues/197\n", stderr);
|
||||
fputs("\n", stderr);
|
||||
|
||||
if (argc < 2)
|
||||
{
|
||||
fprintf (stderr, "Usage: %s <file> (assumed extension .txt)\n",argv[0]);
|
||||
exit (1);
|
||||
}
|
||||
|
||||
fputs("mdb-parsecsv is deprecated and will disappear in a future version of mdbtools.\n", stderr);
|
||||
fputs("Please drop us a line if you have any use of it.\n", stderr);
|
||||
fputs("See https://github.com/mdbtools/mdbtools/issues/197\n", stderr);
|
||||
fputs("\n", stderr);
|
||||
|
||||
strcpy (txt_filename, argv [1]);
|
||||
txtfile = fopen (txt_filename, "r");
|
||||
if (!txtfile) {
|
||||
|
Loading…
Reference in New Issue
Block a user