Browse Source

implement --short for borg list REPO, fixes #611

Thomas Waldmann 9 years ago
parent
commit
12fe47fcd2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      borg/archiver.py

+ 4 - 1
borg/archiver.py

@@ -474,7 +474,10 @@ class Archiver:
             for archive_info in manifest.list_archive_infos(sort_by='ts'):
                 if args.prefix and not archive_info.name.startswith(args.prefix):
                     continue
-                print(format_archive(archive_info))
+                if args.short:
+                    print(archive_info.name)
+                else:
+                    print(format_archive(archive_info))
         return self.exit_code
 
     def do_info(self, args):