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

Handle option like value as option #61

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Handle option like value as option #61

merged 1 commit into from
Jun 3, 2021

Commits on Jun 3, 2021

  1. Handle option like value as option

    From this patch, thwack handles an option like value as **option**.
    
    For example, these arguments are invalid:
    
    ```console
    thwack --exec --help                # Error
    thwack --exec --version             # Error
    thwack --starting-point --exec=open # Error
    ```
    
    However, an option suffixed with `=` still accepts the value as is.
    
    ```console
    thwack --exec=--help                          # OK
    thwack --starting-point=--special-directory-- # OK
    ```
    
    In addition, this patch introduces `--` (double hyphens) to assume the
    rest arguments as `query`. If more than one rest arguments are remained,
    these arguments are just joined by a whitespace.
    yykamei committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    4fe2719 View commit details
    Browse the repository at this point in the history