Reject passing an arg to an option that doesn't take one (bug 6915).
[rsync.git] / popt / popt.h
index 4f85d9e3e802b488f7f4b49a451963f1112ad4f0..8d85f731294f502115e8d553167dc9531a2a11dd 100644 (file)
@@ -82,6 +82,7 @@
 /*@{*/
 #define POPT_ERROR_NOARG       -10     /*!< missing argument */
 #define POPT_ERROR_BADOPT      -11     /*!< unknown option */
+#define POPT_ERROR_UNWANTEDARG -12     /*!< option does not take an argument */
 #define POPT_ERROR_OPTSTOODEEP -13     /*!< aliases nested too deeply */
 #define POPT_ERROR_BADQUOTE    -15     /*!< error in paramter quoting */
 #define POPT_ERROR_ERRNO       -16     /*!< errno set, use strerror(errno) */