Skip to content

#228 Replace ARGV with ENV for --live/--verbose flags in Rakefile#268

Open
VasilevNStas wants to merge 2 commits into
zerocracy:masterfrom
VasilevNStas:228-env-flags
Open

#228 Replace ARGV with ENV for --live/--verbose flags in Rakefile#268
VasilevNStas wants to merge 2 commits into
zerocracy:masterfrom
VasilevNStas:228-env-flags

Conversation

@VasilevNStas

Copy link
Copy Markdown
Contributor

Rake consumes CLI flags before the task body runs, so ARGV.include?('--live') and ARGV.include?('--verbose') in Rakefile:26-27 never see those flags — Rake aborts with invalid option: --live.

Switch to environment variables:

  • LIVE=true bundle exec rake judges — enables live API
  • VERBOSE=true bundle exec rake judges — enables verbose output

Fixes #228

Rake consumes ARGV flags before the task body runs, making
ARGV.include?('--live') and ARGV.include?('--verbose') dead code.
Switch to ENV['LIVE'] and ENV['VERBOSE'], invoked as:
  LIVE=true bundle exec rake judges
  VERBOSE=true bundle exec rake judges
- Add language specifier to fenced code block (MD040)
- Use 1-prefix for all ordered list items (MD029)
- Fix table pipe spacing (MD060)
- Break long table line under 80 chars (MD013)
@VasilevNStas
VasilevNStas requested a review from yegor256 as a code owner June 28, 2026 09:28
@VasilevNStas

Copy link
Copy Markdown
Contributor Author

@yegor256 plz review

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.

Rakefile:33 reads --live/--verbose via ARGV.include?, but Rake consumes those flags before the task runs

1 participant