summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2020-03-17 19:27:26 +0100
committerSolderpunk <solderpunk@sdf.org>2020-03-17 19:27:26 +0100
commit7c72eeba91b61d7f51fafb691c31f6deffd20b3c (patch)
tree4c33b9d253c248c5aeee31b501a13fdd155b85f9
parente116e5e154489253320730e927e8b5bea8499c0a (diff)
When run from the command line, use the directory name as a default feed title.
-rw-r--r--gemfeed.py2
1 files changed, 1 insertions, 1 deletions
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