Sha256: 2b87ad6f2d737897fe89e00dcd65a47cf19da0f278a88f95e25410db0ef8cd4b

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

@announce
Feature: Options via a command line interface (CLI)

  As an interactive user or automated script
  The application should accept options on the command line
  These options should override hard coded defaults
  In order to configure options

  Scenario: Version info
    When I run `revenc --version`
    Then the exit status should be 0
    And the output should match /revenc, version ([\d]+\.[\d]+\.[\d]+$)/

  Scenario: Help
    When I run `revenc --help`
    Then the exit status should be 0
    And the output should match:
      """
      .*
        Usage: .*
      .*
      Options:
      .*
          -v, --\[no-\]verbose               Run verbosely
      """

  Scenario: Invalid option
    When I run `revenc --non-existing-option`
    Then the exit status should be 1
    And the output should match:
      """
      ^.* invalid option: --non-existing-option
      ^.* --help for more information

      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revenc-0.2.1 features/bin.feature