commit 2cbf8a68cf13b3ef33b413030dc593c90a90641d
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Tue Dec 28 18:53:55 2021 +0100

    abort if any invalid Channels/Groups have been specified
    
    this is more in line with expectations, and avoids a silly "No channel
    specified." error message.

 src/main_sync.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main_sync.c b/src/main_sync.c
index 2f445105..4e6ae5ae 100644
--- a/src/main_sync.c
+++ b/src/main_sync.c
@@ -283,6 +283,8 @@ sync_chans( core_vars_t *cvars, char **argv )
                  gotgrp: ;
                }
        }
+       if (cvars->ret)
+               return;
        if (!chans) {
                fputs( "No channel specified. Try '" EXE " -h'\n", stderr );
                cvars->ret = 1;


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to