From 4946a64db774a140d06c45f186f5bc5a4c0c6daa Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Tue, 11 Feb 2020 18:24:37 -0400 Subject: Use Boost's program_options instead of vendoring clipp This changes how options are parsed a bit, but tests are happy and typical usage is unaffected; just the usage screen is different. This was intended for post-1.0, but turns out I decided to do it. Boost is already required for pre-C++11, so it doesn't seem like a big deal to use. If you don't build the tools, it won't be required. --- tests/spec/simulator_spec.rb | 4 ++-- tests/spec/validator_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/spec/simulator_spec.rb b/tests/spec/simulator_spec.rb index b3b24c9..f5f46ec 100644 --- a/tests/spec/simulator_spec.rb +++ b/tests/spec/simulator_spec.rb @@ -8,11 +8,11 @@ RSpec.describe 'HorizonScript Simulator', :type => :aruba do context "argument passing" do it "requires an installfile to be specified" do run_command 'hscript-simulate' - expect(last_command_started).to have_output(/usage/) + expect(last_command_started).to have_output(/Allowed options/) end it "supports Strict Mode" do run_command 'hscript-simulate foo -s' - expect(last_command_started).to_not have_output(/usage/) + expect(last_command_started).to_not have_output(/Allowed options/) end it "doesn't output ANSI colours when instructed not to" do run_command 'hscript-simulate foo -n' diff --git a/tests/spec/validator_spec.rb b/tests/spec/validator_spec.rb index ba38563..971b91d 100644 --- a/tests/spec/validator_spec.rb +++ b/tests/spec/validator_spec.rb @@ -11,11 +11,11 @@ RSpec.describe 'HorizonScript validation', :type => :aruba do context "Utility argument passing" do it "requires an installfile to be specified" do run_command 'hscript-validate' - expect(last_command_started).to have_output(/usage/) + expect(last_command_started).to have_output(/Allowed options/) end it "accepts -i flag" do run_command 'hscript-validate foo -i' - expect(last_command_started).to_not have_output(/usage/) + expect(last_command_started).to_not have_output(/Allowed options/) end it "doesn't output ANSI colours when instructed not to" do run_command 'hscript-validate foo -n' -- cgit v1.2.3-60-g2f50