Skip to content

Commit

Permalink
fixed version to v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
likle committed Jan 7, 2024
1 parent ffc56bc commit e38dc64
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14.7)

# set project name
project(cargs
VERSION 1.2.0
VERSION 1.1.0
DESCRIPTION "A simple argument parser library"
LANGUAGES C)

Expand Down
2 changes: 1 addition & 1 deletion clib.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cargs",
"version": "v1.2.0",
"version": "v1.1.0",
"repo": "likle/cargs",
"description": "command line argument library for C/C++",
"src": [
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/cag_option_get_error_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: cag_option_get_error_index
description: Gets the current error index of the context.
---

_(since v1.2.0)_
_(since v1.1.0)_
Retrieves the index of an invalid option.

## Description
Expand Down Expand Up @@ -37,4 +37,4 @@ Returns the index of the invalid option, or -1 if it is not invalid.
| Version | Description |
|------------|---------------------------------|
| **v1.2.0** | The function is introduced. |
| **v1.1.0** | The function is introduced. |
4 changes: 2 additions & 2 deletions docs/reference/cag_option_get_error_letter.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: cag_option_get_error_index
description: Gets the current error index of the context.
---

_(since v1.2.0)_
_(since v1.1.0)_
Retrieves the letter character of the invalid option.

## Description
Expand Down Expand Up @@ -33,4 +33,4 @@ or if the current option is in the long format (e.g. `--long-option`).
| Version | Description |
|------------|--------------------------------------------------------|
| **v1.2.0** | The function is introduced. |
| **v1.1.0** | The function is introduced. |
4 changes: 2 additions & 2 deletions docs/reference/cag_option_get_identifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ char cag_option_get_identifier(const cag_option_context *context);
This function gets the identifier of the option, which should be unique to
this option and can be used to determine what kind of option this is.
Before version **1.2.0** this function was named `cag_option_get`.
Before version **1.1.0** this function was named `cag_option_get`.
## Parameters
* **context**: The context from which the option was fetched.
Expand All @@ -25,7 +25,7 @@ Returns the identifier of the option.
| Version | Description |
|------------|-------------------------------------------------------|
| **v1.2.0** | The function is renamed to cag_option_get_identifier. |
| **v1.1.0** | The function is renamed to cag_option_get_identifier. |
| **v1.0.3** | Added shared library exports. |
| **v1.0.1** | Added support for C++ projects. |
| **v1.0.0** | The function is introduced. |
4 changes: 2 additions & 2 deletions docs/reference/cag_option_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This function prepares the context for iteration and initializes the context
with the supplied options and arguments. After the context has been prepared,
it can be used to fetch arguments from it.
Before version **v1.2.0** this function was called `cag_option_prepare`.
Before version **v1.1.0** this function was called `cag_option_prepare`.
## Parameters
* **context**: The context which will be initialized.
Expand All @@ -29,7 +29,7 @@ Before version **v1.2.0** this function was called `cag_option_prepare`.
| Version | Description |
|------------|---------------------------------------------|
| **v1.2.0** | The function is renamed to cag_option_init. |
| **v1.1.0** | The function is renamed to cag_option_init. |
| **v1.0.3** | Added shared library exports. |
| **v1.0.1** | Added support for C++ projects. |
| **v1.0.0** | The function is introduced. |
4 changes: 2 additions & 2 deletions docs/reference/cag_option_print_error.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: cag_option_print_error
description: Prints the error associated with the invalid option to the specified destination.
---

_(since v1.2.0)_
_(since v1.1.0)_
Prints the error associated with the invalid option to the specified destination.

## Description
Expand All @@ -25,4 +25,4 @@ This function is meant to be called in a fetch loop if a unknown option occurs.
| Version | Description |
|------------|--------------------------------------------------------|
| **v1.2.0** | The function is introduced. |
| **v1.1.0** | The function is introduced. |

0 comments on commit e38dc64

Please sign in to comment.