Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-873

Error on unprocessed options/parameters

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • Precommit
    • None
    • Hide
      <!-- markdown -->
      Users:

      precommit's commands (docker-cleanup, qbt, smart-apply-patch, test-patch) will now exit with an error if they are given a double-dashed option that is unknown. Using `--ignore-unknown-options=true` option will return to the previous behavior. Non double-dashed parameters continue to be considered the patch location.

      This option will be removed in a future release.

      Developers:

      This patch adds the `delete_parameter` routine. It should be called to remove an option from the variable that is being used to track which parameters have been processed. The internals of this tracking are still very much in flux and may change in the future.
      Show
      <!-- markdown --> Users: precommit's commands (docker-cleanup, qbt, smart-apply-patch, test-patch) will now exit with an error if they are given a double-dashed option that is unknown. Using `--ignore-unknown-options=true` option will return to the previous behavior. Non double-dashed parameters continue to be considered the patch location. This option will be removed in a future release. Developers: This patch adds the `delete_parameter` routine. It should be called to remove an option from the variable that is being used to track which parameters have been processed. The internals of this tracking are still very much in flux and may change in the future.
    • Important

    Description

      Given how frequently we've been eliminating some parameters lately as we make things more automatic and/or pushed to be external (e.g., pylintrc vs. CLI options), it is probably a good idea to start getting stricter on what options are being passed on the CLI.

      Attachments

        Issue Links

          Activity

            People

              aw Allen Wittenauer
              aw Allen Wittenauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m