Add warning if --update-md-path used without --update
authorTomas Mlcoch <tmlcoch@redhat.com>
Wed, 11 Sep 2013 15:02:15 +0000 (17:02 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Wed, 11 Sep 2013 15:02:15 +0000 (17:02 +0200)
src/cmd_parser.c

index 944c1e9..33a0eee 100644 (file)
@@ -289,6 +289,9 @@ check_arguments(struct CmdOptions *options,
     }
 
     // Process update_md_paths
+    if (options->update_md_paths && !options->update)
+        g_warning("Usage of --update-md-path without --update has no effect!");
+
     x = 0;
     while (options->update_md_paths && options->update_md_paths[x] != NULL) {
         char *path = options->update_md_paths[x];