mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 12:57:14 -05:00
Ensures to test also the progress update.
This commit is contained in:
parent
61ce847d6a
commit
7054256c62
4 changed files with 16 additions and 3 deletions
|
|
@ -236,6 +236,7 @@ void config(char* conf, size_t conf_size, const char* argv0)
|
|||
#define OPT_TEST_RUN 278
|
||||
#define OPT_TEST_FORCE_SCAN_WINFIND 279
|
||||
#define OPT_TEST_IMPORT_CONTENT 280
|
||||
#define OPT_TEST_FORCE_PROGRESS 281
|
||||
|
||||
#if HAVE_GETOPT_LONG
|
||||
struct option long_options[] = {
|
||||
|
|
@ -337,6 +338,9 @@ struct option long_options[] = {
|
|||
/* Alternative import working by data */
|
||||
{ "test-import-content", 1, 0, OPT_TEST_IMPORT_CONTENT },
|
||||
|
||||
/* Force immediate progress state update */
|
||||
{ "test-force-progress", 0, 0, OPT_TEST_FORCE_PROGRESS },
|
||||
|
||||
{ 0, 0, 0, 0 }
|
||||
};
|
||||
#endif
|
||||
|
|
@ -644,6 +648,9 @@ int main(int argc, char* argv[])
|
|||
case OPT_TEST_FORCE_SCAN_WINFIND :
|
||||
opt.force_scan_winfind = 1;
|
||||
break;
|
||||
case OPT_TEST_FORCE_PROGRESS :
|
||||
opt.force_progress = 1;
|
||||
break;
|
||||
default :
|
||||
/* LCOV_EXCL_START */
|
||||
fprintf(stderr, "Unknown option '%c'\n", (char)c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue