Skip to content

Commit

Permalink
add a --reverse option
Browse files Browse the repository at this point in the history
  • Loading branch information
msmeissn committed May 19, 2023
1 parent 8885426 commit 9552d9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gphoto2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,7 @@ typedef enum {
ARG_PORT,
ARG_QUIET,
ARG_RECURSE,
ARG_REVERSE,
ARG_RESET,
ARG_RESET_INTERVAL,
ARG_RMDIR,
Expand Down Expand Up @@ -1491,6 +1492,10 @@ cb_arg_init (poptContext __unused__ ctx,
gp_params.flags |= FLAGS_RECURSE;
break;

case ARG_REVERSE:
gp_params.flags |= FLAGS_REVERSE;
break;

case ARG_MODEL:
gp_log (GP_LOG_DEBUG, "main", "Processing 'model' "
"option ('%s')...", arg);
Expand Down Expand Up @@ -2154,6 +2159,8 @@ main (int argc, char **argv, char **envp)
N_("Recursion (default for download)"), NULL},
{"no-recurse", '\0', POPT_ARG_NONE, NULL, ARG_NO_RECURSE,
N_("No recursion (default for deletion)"), NULL},
{"reverse", '\0', POPT_ARG_NONE, NULL, ARG_REVERSE,
N_("Reverse order of file operations"), NULL},
{"new", '\0', POPT_ARG_NONE, NULL, ARG_NEW,
N_("Process new files only"), NULL},
{"force-overwrite", '\0', POPT_ARG_NONE, NULL,
Expand Down

0 comments on commit 9552d9d

Please sign in to comment.