Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support single dash option #99

Merged
merged 1 commit into from
May 16, 2023
Merged

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented May 16, 2023

cmd_single_dash() {
    print_argc_vars
}
Single dashe options

USAGE: spec cmd_single_dash [OPTIONS] [ARG1]...

ARGS:
  [ARG1]...  A positional arg

OPTIONS:
  -f,  -flag1        A flag
  -o,  -opt1 <OPT1>  A option
  -h,  -help         Print help

```
cmd_single_dash() {
    print_argc_vars
}
```

```
Single dashe options

USAGE: spec cmd_single_dash [OPTIONS] [ARG1]...

ARGS:
  [ARG1]...  A positional arg

OPTIONS:
  -f,  -flag1        A flag
  -o,  -opt1 <OPT1>  A option
  -h,  -help         Print help
```
@sigoden sigoden changed the title feat: support single dash long option feat: support single dash option May 16, 2023
@sigoden sigoden merged commit cccb48f into main May 16, 2023
@sigoden sigoden deleted the feat-single-dash-long-option branch May 16, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant