-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle option like value as option (#61)
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.
- Loading branch information
Showing
1 changed file
with
115 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters