Skip to content

Commit

Permalink
chore(release): version v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Sep 29, 2022
1 parent c4e3ff7 commit a2242bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "argc"
version = "0.11.0"
version = "0.12.0"
edition = "2021"
authors = ["sigoden <[email protected]>"]
description = "A handy way to handle sh/bash cli parameters"
description = "Easily parse cli arguments in bash"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/sigoden/argc"
repository = "https://github.com/sigoden/argc"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![CI](https://github.com/sigoden/argc/actions/workflows/ci.yaml/badge.svg)](https://github.com/sigoden/argc/actions/workflows/ci.yaml)
[![Crates](https://img.shields.io/crates/v/argc.svg)](https://crates.io/crates/argc)

A handy way to handle sh/bash cli parameters.
Easily parse cli arguments in bash.

- [Argc](#argc)
- [Install](#install)
Expand Down Expand Up @@ -47,12 +47,12 @@ Download from [Github Releases](https://github.com/sigoden/argc/releases), unzip
## Usage
![demo](https://user-images.githubusercontent.com/4012553/191886396-3b25eb74-75ab-4df2-a920-4c5ce030058c.gif)
![demo](https://user-images.githubusercontent.com/4012553/192987706-2b07a356-640f-454b-aebe-88ba8fc07016.gif)
To write a command-line program with argc, we only need to do two things:
1. Describe the options, parameters, and subcommands in comment.
2. Call the following command to entrust argc to process command line parameters for us
1. Describe the options, parameters, and subcommands in comments.
2. Call the following command to entrust argc to process command line arguments for us
```sh
eval $(argc "$0" "$@")
Expand All @@ -70,7 +70,7 @@ We can directly use variables corresponding to flags/options/positional paramete

## Comment Tags

`argc` loads cli definition from comment tags.
`argc` parses cli definition from comment tags.

### @cmd

Expand Down

0 comments on commit a2242bf

Please sign in to comment.