From 4fbb6454c02560e40d38a8ba4214d09974b82fca Mon Sep 17 00:00:00 2001 From: lededev Date: Sat, 25 Sep 2021 22:41:12 +0800 Subject: [PATCH] show default --log-dir for current user in --help --- AV_Data_Capture.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AV_Data_Capture.py b/AV_Data_Capture.py index de80596..e4aa564 100755 --- a/AV_Data_Capture.py +++ b/AV_Data_Capture.py @@ -39,8 +39,10 @@ def argparse_function(ver: str) -> typing.Tuple[str, str, bool]: parser.add_argument("file", default='', nargs='?', help="Single Movie file path.") parser.add_argument("-p","--path",default='',nargs='?',help="Analysis folder path.") # parser.add_argument("-c", "--config", default='config.ini', nargs='?', help="The config file Path.") - parser.add_argument("-o","--log-dir",dest='logdir',default=os.path.join(Path.home(),'.avlogs'),nargs='?', - help="Duplicate from stdout and stderr to logfiles in log directory.") + parser.add_argument("-o","--log-dir",dest='logdir', + default=os.path.join(Path.home(),'.avlogs'),nargs='?', + help=f"Duplicate from stdout and stderr to logfiles in log directory. " + + "Default for current user is: " + os.path.join(Path.home(),'.avlogs')) parser.add_argument("-n", "--number", default='', nargs='?', help="Custom file number") parser.add_argument("-a", "--auto-exit", dest='autoexit', action="store_true", help="Auto exit after program complete")