15 Commits

Author SHA1 Message Date
Gautham Goli
6d3aa18f6a
cli_parser: Make Homebrew.args immutable once CLI arguments have been processed 2018-10-29 02:31:57 +05:30
Gautham Goli
f7ec07680c
cli_parser: Add support for short flag options 2018-10-25 21:43:49 +05:30
Gautham Goli
e32da937a6
cli_parser: Add custom description support for global switches 2018-10-24 17:27:31 +05:30
EricFromCanada
6b8724431f cli_parser: improve help text formatting
- reduce desc_line_length so `brew help` output fits in 80 columns
- support special formatting across line breaks
- support emphasis using asterisks
- add missing depends_on: tests
2018-10-12 13:38:14 -04:00
Mike McQuaid
78eba5b815
Autofix RuboCop RSpec failures 2018-09-20 13:36:42 +01:00
Gautham Goli
fba52e2f74 cli_parser: Store parsed args in Homebrew.args and access args everywhere else 2018-05-30 00:05:39 +05:30
Gautham Goli
0d53002dbc cli_parser: Add depends and conflicts for switch options 2018-05-25 04:05:45 +05:30
Gautham Goli
07ee23d711 cli_parser: Refactor interface for depends, conflicts and add tests 2018-04-30 15:47:13 +05:30
Gautham Goli
36c1ad9f64 cli_parser: Add depends, conflicts option constraints 2018-04-14 21:44:47 +05:30
Gautham Goli
48aecf2fa7 cli_parser: Refactor required argument for flag to '=' 2018-04-14 19:04:24 +05:30
Gautham Goli
d22b750e17 Store common switch as Homebrew.args global var 2018-04-10 00:00:35 +05:30
Gautham Goli
8ef1fb30a0 Add :quiet, :verbose, :debug common switches to be specified 2018-03-29 03:20:14 +05:30
Mike McQuaid
5e1806e796 test: rubocop-rspec style auto-corrects.
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Gautham Goli
99438e8e44 Parser: Add env named argument for switch to check environment variables 2018-03-25 11:04:18 +05:30
Gautham Goli
5743f22209 cli : Implement Parser and use it for parsing audit command args 2018-03-09 02:44:50 +05:30