properly align usage message of crypto.py
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 30 May 2017 09:23:57 +0000 (11:23 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:09 +0000 (13:34 +0200)
deltatar/crypto.py

index bd87763..e49574f 100755 (executable)
@@ -1509,11 +1509,12 @@ def usage (err=False):
     out = print
     if err is True:
         out = noise
+    indent = ' ' * len (SELF)
     out ("usage: %s SUBCOMMAND { --help" % SELF)
-    out ("                     | [ -v ] { -p PASSWORD | -k KEY }")
-    out ("                       { { -i | --in }  { - | SOURCE } }")
-    out ("                       { { -o | --out } { - | DESTINATION } }")
-    out ("                       { -D | --no-decrypt } { -S | --split }")
+    out ("       %s            | [ -v ] { -p PASSWORD | -k KEY }" % indent)
+    out ("       %s              { { -i | --in }  { - | SOURCE } }" % indent)
+    out ("       %s              { { -o | --out } { - | DESTINATION } }" % indent)
+    out ("       %s              { -D | --no-decrypt } { -S | --split }" % indent)
     out ("")
     out ("\twhere")
     out ("\t\tSUBCOMMAND      main mode: { process | scrypt }")