Commit b959a688 authored by bescoto's avatar bescoto

Added --{include|exclude}-globbing-filelist-stdin options


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@555 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 9c832aaa
...@@ -57,15 +57,17 @@ def parse_cmdlineoptions(arglist): ...@@ -57,15 +57,17 @@ def parse_cmdlineoptions(arglist):
"compare", "compare-at-time=", "current-time=", "exclude=", "compare", "compare-at-time=", "current-time=", "exclude=",
"exclude-device-files", "exclude-filelist=", "exclude-device-files", "exclude-filelist=",
"exclude-filelist-stdin", "exclude-globbing-filelist=", "exclude-filelist-stdin", "exclude-globbing-filelist=",
"exclude-mirror=", "exclude-other-filesystems", "exclude-globbing-filelist-stdin", "exclude-mirror=",
"exclude-regexp=", "exclude-special-files", "force", "exclude-other-filesystems", "exclude-regexp=",
"group-mapping-file=", "include=", "include-filelist=", "exclude-special-files", "force", "group-mapping-file=",
"include-filelist-stdin", "include-globbing-filelist=", "include=", "include-filelist=", "include-filelist-stdin",
"include-regexp=", "list-at-time=", "list-changed-since=", "include-globbing-filelist=",
"list-increments", "list-increment-sizes", "include-globbing-filelist-stdin", "include-regexp=",
"never-drop-acls", "no-acls", "no-compare-inode", "list-at-time=", "list-changed-since=", "list-increments",
"no-compression", "no-compression-regexp=", "no-eas", "list-increment-sizes", "never-drop-acls", "no-acls",
"no-file-statistics", "no-hard-links", "null-separator", "no-compare-inode", "no-compression",
"no-compression-regexp=", "no-eas", "no-file-statistics",
"no-hard-links", "null-separator",
"override-chars-to-quote=", "parsable-output", "override-chars-to-quote=", "parsable-output",
"print-statistics", "remote-cmd=", "remote-schema=", "print-statistics", "remote-cmd=", "remote-schema=",
"remove-older-than=", "restore-as-of=", "restrict=", "remove-older-than=", "restore-as-of=", "restrict=",
...@@ -96,6 +98,10 @@ def parse_cmdlineoptions(arglist): ...@@ -96,6 +98,10 @@ def parse_cmdlineoptions(arglist):
elif opt == "--exclude-globbing-filelist": elif opt == "--exclude-globbing-filelist":
select_opts.append((opt, arg)) select_opts.append((opt, arg))
select_files.append(sel_fl(arg)) select_files.append(sel_fl(arg))
elif opt == "--exclude-globbing-filelist-stdin":
select_opts.append(("--exclude-globbing-filelist",
"standard input"))
select_files.append(sys.stdin)
elif (opt == "--exclude-other-filesystems" or elif (opt == "--exclude-other-filesystems" or
opt == "--exclude-regexp" or opt == "--exclude-regexp" or
opt == "--exclude-special-files"): select_opts.append((opt, arg)) opt == "--exclude-special-files"): select_opts.append((opt, arg))
...@@ -111,6 +117,10 @@ def parse_cmdlineoptions(arglist): ...@@ -111,6 +117,10 @@ def parse_cmdlineoptions(arglist):
elif opt == "--include-globbing-filelist": elif opt == "--include-globbing-filelist":
select_opts.append((opt, arg)) select_opts.append((opt, arg))
select_files.append(sel_fl(arg)) select_files.append(sel_fl(arg))
elif opt == "--include-globbing-filelist-stdin":
select_opts.append(("--include-globbing-filelist",
"standard input"))
select_files.append(sys.stdin)
elif opt == "--include-regexp": select_opts.append((opt, arg)) elif opt == "--include-regexp": select_opts.append((opt, arg))
elif opt == "--list-at-time": elif opt == "--list-at-time":
restore_timestr, action = arg, "list-at-time" restore_timestr, action = arg, "list-at-time"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment