warn about bad option combinations
authorChristian Grothoff <christian@grothoff.org>
Mon, 5 Apr 2010 13:48:30 +0000 (13:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 5 Apr 2010 13:48:30 +0000 (13:48 +0000)
src/fs/gnunet-pseudonym.c

index 93b51817d142fda0de3d531575ebf4159de2f4e0..f585cf6ccd63a0fecc88a5bd819a96dad4b6dfd1 100644 (file)
@@ -307,8 +307,21 @@ run (void *cls,
                                             NULL);
              return;
            }
+         else
+           {
+             if (ksk_uri != NULL)
+               fprintf (stderr, _("Option `%s' ignored\n"), "-k");   
+           }
        }
     }
+  else
+    {
+      if (root_identifier != NULL) 
+       fprintf (stderr, _("Option `%s' ignored\n"), "-r");
+      if (ksk_uri != NULL)
+       fprintf (stderr, _("Option `%s' ignored\n"), "-k");   
+    }    
+    
   post_advertising (NULL, NULL, NULL);
 }