summaryrefslogtreecommitdiff
path: root/sfeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed.c')
-rw-r--r--sfeed.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index 39b8a04..0d334ff 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -727,8 +727,13 @@ xml_handler_end_element(XMLParser *p, const char *name, size_t namelen, int issh
int
main(int argc, char *argv[])
{
- if(argc > 1)
+ if(argc > 1) {
append = argv[1];
+ if(!strcmp(argv[1], "-v")) {
+ printf("%s\n", VERSION);
+ return 0;
+ }
+ }
/* init strings and initial memory pool size */
string_buffer_init(&ctx.item.timestamp, 64);