[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Add info about disk requirements.



commit 54b00da7f92242e2680637746be0afb633feac55
Author: juga0 <juga@xxxxxxxxxx>
Date:   Thu Sep 6 16:59:23 2018 +0000

    Add info about disk requirements.
    
    It will only be shown when running sbws without arguments.
---
 sbws/sbws.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sbws/sbws.py b/sbws/sbws.py
index 6f8752c..1ac13dd 100644
--- a/sbws/sbws.py
+++ b/sbws/sbws.py
@@ -14,6 +14,8 @@ from requests.__version__ import __version__ as requests_version
 import platform
 import logging
 
+from sbws.util.fs import sbws_required_disk_space
+
 log = logging.getLogger(__name__)
 
 
@@ -51,6 +53,7 @@ def main():
             log.critical(e)
         exit(1)
     configure_logging(args, conf)
+    parser.description = sbws_required_disk_space(conf)
     def_args = [args, conf]
     def_kwargs = {}
     known_commands = {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits