From 7c72eeba91b61d7f51fafb691c31f6deffd20b3c Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Tue, 17 Mar 2020 19:27:26 +0100 Subject: When run from the command line, use the directory name as a default feed title. --- gemfeed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemfeed.py b/gemfeed.py index e85d532..15ef166 100644 --- a/gemfeed.py +++ b/gemfeed.py @@ -168,7 +168,7 @@ def main(): parser.add_argument('-s', '--subtitle', dest='subtitle', type=str, help='feed subtitle') parser.add_argument('-t', '--title', dest='title', type=str, - help='feed title') + default=os.path.basename(cwd), help='feed title') args = parser.parse_args() # Normalise base URL -- cgit v1.2.3-54-g00ecf