diff options
| -rw-r--r-- | lib/spandx/cli.rb | 6 | ||||
| -rw-r--r-- | spec/integration/build_spec.rb | 12 | ||||
| -rw-r--r-- | spec/integration/scan_spec.rb | 10 |
3 files changed, 14 insertions, 14 deletions
diff --git a/lib/spandx/cli.rb b/lib/spandx/cli.rb index 3a1204c..95dd16d 100644 --- a/lib/spandx/cli.rb +++ b/lib/spandx/cli.rb @@ -19,9 +19,9 @@ module Spandx desc 'build', 'Build a package index' method_option :help, aliases: '-h', type: :boolean, - desc: 'Display usage information' + desc: 'Display usage information' method_option :directory, aliases: '-d', type: :string, - desc: "Directory to build index in" + desc: 'Directory to build index in' def build(*) if options[:help] invoke :help, ['build'] @@ -33,7 +33,7 @@ module Spandx desc 'scan LOCKFILE', 'Scan a lockfile and list dependencies/licenses' method_option :help, aliases: '-h', type: :boolean, - desc: 'Display usage information' + desc: 'Display usage information' def scan(lockfile = nil) if options[:help] invoke :help, ['scan'] diff --git a/spec/integration/build_spec.rb b/spec/integration/build_spec.rb index cc2c774..5e080f6 100644 --- a/spec/integration/build_spec.rb +++ b/spec/integration/build_spec.rb @@ -4,14 +4,14 @@ RSpec.describe '`spandx build` command', type: :cli do it 'executes `spandx help build` command successfully' do output = `spandx help build` expected_output = <<~OUT -Usage: - spandx build + Usage: + spandx build -Options: - -h, [--help], [--no-help] # Display usage information - -d, [--directory=DIRECTORY] # Directory to build index in + Options: + -h, [--help], [--no-help] # Display usage information + -d, [--directory=DIRECTORY] # Directory to build index in -Build a package index + Build a package index OUT expect(output).to eq(expected_output) diff --git a/spec/integration/scan_spec.rb b/spec/integration/scan_spec.rb index 9ff4571..8b8b610 100644 --- a/spec/integration/scan_spec.rb +++ b/spec/integration/scan_spec.rb @@ -4,13 +4,13 @@ RSpec.describe '`spandx scan` command', type: :cli do it 'executes `spandx help scan` command successfully' do output = `spandx help scan` expected_output = <<~OUT -Usage: - spandx scan LOCKFILE + Usage: + spandx scan LOCKFILE -Options: - -h, [--help], [--no-help] # Display usage information + Options: + -h, [--help], [--no-help] # Display usage information -Scan a lockfile and list dependencies/licenses + Scan a lockfile and list dependencies/licenses OUT expect(output).to eq(expected_output) |
