changeset 15742:55cbf0c204bc

when somebody specifies e.g. --loop, the message says that a -loop option does not exist. So add an extra - to the message.
author reimar
date Fri, 17 Jun 2005 08:11:56 +0000
parents 2beb7a7cdac1
children c06986fbf819
files parser-mecmd.c parser-mpcmd.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/parser-mecmd.c	Fri Jun 17 02:22:34 2005 +0000
+++ b/parser-mecmd.c	Fri Jun 17 08:11:56 2005 +0000
@@ -87,7 +87,7 @@
 	mp_opt = m_config_get_option(config,opt);
 	if(!mp_opt) {
 	  tmp = M_OPT_UNKNOWN;
-	  mp_msg(MSGT_CFGPARSER, MSGL_ERR, "%s is not an MEncoder option\n",opt);
+	  mp_msg(MSGT_CFGPARSER, MSGL_ERR, "-%s is not an MEncoder option\n",opt);
 	  goto err_out;
 	}
 	if(!entry || (mp_opt->flags & M_OPT_GLOBAL)){
--- a/parser-mpcmd.c	Fri Jun 17 02:22:34 2005 +0000
+++ b/parser-mpcmd.c	Fri Jun 17 08:11:56 2005 +0000
@@ -191,7 +191,7 @@
 	      }
 	    } else {
 	      tmp = M_OPT_UNKNOWN;
-	      mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Unknown option on the command line: %s\n",opt);
+	      mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Unknown option on the command line: -%s\n",opt);
 	    }
 	  }
 	}