Remove "invalid argument" statuses
[argpar.git] / argpar / argpar.h
index 453f53385eec786140b425eae1f9d157b2cbeda1..0a7631524f47f1e2bf763a8eb3f5b3dfc87b73f2 100644 (file)
  *
  * * Non-option arguments (anything else).
  *
- * The argpar parsers don't accept `-` or `--` as arguments. The latter
- * means "end of options" for many command-line tools, but this library
- * is all about keeping the order of the arguments, so it doesn't mean
- * much to put them at the end. This has the side effect that a
+ * The argpar parsers parse `-` and `--` as non-option arguments. A
  * non-option argument cannot have the form of an option, for example if
  * you need to pass the exact relative path `--component`. In that case,
  * you would need to pass `./--component`. There's no generic way to
@@ -128,7 +125,7 @@ struct argpar_opt_descr {
        /* Short option character, or `\0` */
        const char short_name;
 
-       /* Long option name (without `--`), or `NULL` */
+       /* Long option name (without the `--` prefix), or `NULL` */
        const char * const long_name;
 
        /* True if this option has an argument */
@@ -316,7 +313,6 @@ enum argpar_iter_next_status {
        ARGPAR_ITER_NEXT_STATUS_END,
        ARGPAR_ITER_NEXT_STATUS_ERROR_UNKNOWN_OPT,
        ARGPAR_ITER_NEXT_STATUS_ERROR_MISSING_OPT_ARG,
-       ARGPAR_ITER_NEXT_STATUS_ERROR_INVALID_ARG,
        ARGPAR_ITER_NEXT_STATUS_ERROR_UNEXPECTED_OPT_ARG,
        ARGPAR_ITER_NEXT_STATUS_ERROR_MEMORY,
 };
@@ -347,9 +343,6 @@ enum argpar_iter_next_status {
  *   `ARGPAR_ITER_NEXT_STATUS_ERROR_MISSING_OPT_ARG`:
  *       Missing option argument.
  *
- *   `ARGPAR_ITER_NEXT_STATUS_ERROR_INVALID_ARG`:
- *       Invalid argument.
- *
  *   `ARGPAR_ITER_NEXT_STATUS_ERROR_UNEXPECTED_OPT_ARG`:
  *       Unexpected option argument.
  *
This page took 0.023198 seconds and 4 git commands to generate.