Error when deprecated --excludes command-line option is used.
This commit is contained in:
parent
6a0219a7a4
commit
300ead65d3
2 changed files with 4 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -1,6 +1,7 @@
|
||||||
1.2.12.dev0
|
1.2.12.dev0
|
||||||
* #111: Update Borg create --filter values so a dry run lists files to back up.
|
* #111: Update Borg create --filter values so a dry run lists files to back up.
|
||||||
* #113: Update README with link to a new/forked Docker image.
|
* #113: Update README with link to a new/forked Docker image.
|
||||||
|
* Error when deprecated --excludes command-line option is used.
|
||||||
|
|
||||||
1.2.11
|
1.2.11
|
||||||
* #108: Support for Borg create --progress via borgmatic command-line flag.
|
* #108: Support for Borg create --progress via borgmatic command-line flag.
|
||||||
|
|
|
@ -110,6 +110,9 @@ def parse_arguments(*arguments):
|
||||||
|
|
||||||
args = parser.parse_args(arguments)
|
args = parser.parse_args(arguments)
|
||||||
|
|
||||||
|
if args.excludes_filename:
|
||||||
|
raise ValueError('The --excludes option has been replaced with exclude_patterns in configuration')
|
||||||
|
|
||||||
if args.progress and not args.create:
|
if args.progress and not args.create:
|
||||||
raise ValueError('The --progress option can only be used with the --create option')
|
raise ValueError('The --progress option can only be used with the --create option')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue