Show log directory in --help

Mon, 29 Jan 2018 10:00:31 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 29 Jan 2018 10:00:31 +0000
changeset 92
a1d3721ef5fa
parent 91
f53aa2007a84
child 93
040a0479f51e

Show log directory in --help

borgend.py file | annotate | diff | comparison | revisions
--- a/borgend.py	Mon Jan 29 09:43:39 2018 +0000
+++ b/borgend.py	Mon Jan 29 10:00:31 2018 +0000
@@ -17,9 +17,19 @@
 # Argument processing
 #
 
+epilog_format="""
+Configuration file location:
+
+    %s
+
+Log directory:
+
+    %s/
+ """
+
 parser=argparse.ArgumentParser(
     description=branding.appname_stylised + ": BorgBackup scheduler, queue, and tray icon.",
-    epilog='Configuration file location:\n\n    %s\n ' % locations.cfgfile,
+    epilog=epilog_format % (locations.cfgfile, locations.logs_dir),
     formatter_class=argparse.RawDescriptionHelpFormatter)
 
 parser.add_argument(

mercurial