Browse Source

Update help/README about --create --json.

Dan Helfman 2 months ago
parent
commit
596f6f9dac
3 changed files with 7 additions and 4 deletions
  1. 3
    0
      NEWS
  2. 2
    2
      README.md
  3. 2
    2
      borgmatic/commands/borgmatic.py

+ 3
- 0
NEWS View File

@@ -1,3 +1,6 @@
1
+1.2.4
2
+ * Fix for archive checking traceback due to parameter mismatch.
3
+
1 4
 1.2.3
2 5
  * #64, #90, #92: Rewrite of logging system. Now verbosity flags passed to Borg are derived from
3 6
    borgmatic's log level. Note that the output of borgmatic might slightly change.

+ 2
- 2
README.md View File

@@ -306,8 +306,8 @@ borgmatic --list
306 306
 borgmatic --info
307 307
 ```
308 308
 
309
-You can include an optional `--json` flag with either `--list` or `--info` to
310
-get the output formatted as JSON.
309
+You can include an optional `--json` flag with `--create`, `--list`, or
310
+`--info` to get the output formatted as JSON.
311 311
 
312 312
 
313 313
 ## Autopilot

+ 2
- 2
borgmatic/commands/borgmatic.py View File

@@ -81,7 +81,7 @@ def parse_arguments(*arguments):
81 81
         dest='json',
82 82
         default=False,
83 83
         action='store_true',
84
-        help='Output results from the --list or --info options as json',
84
+        help='Output results from the --create, --list, or --info options as json',
85 85
     )
86 86
     parser.add_argument(
87 87
         '-n', '--dry-run',
@@ -100,7 +100,7 @@ def parse_arguments(*arguments):
100 100
     args = parser.parse_args(arguments)
101 101
 
102 102
     if args.json and not (args.create or args.list or args.info):
103
-        raise ValueError('The --json option can only be used with the --create, --list or --info  options')
103
+        raise ValueError('The --json option can only be used with the --create, --list, or --info options')
104 104
 
105 105
     if args.json and args.list and args.info:
106 106
         raise ValueError(

Loading…
Cancel
Save