getsops / getsops/sops

(feat) make noise instead of ignoring flags passed behind filename

Open
#747 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
23.1k
Forks
1.1k
Avg merge
1d 11h
Merged PRs (30d)
9

Description

This command will silently ignore the --output flag and its passed value.

sops -d encrypted_secret.json --output decrypted_secret.json

I think it would make sense to let this error instead, otherwise issues like https://github.com/mozilla/sops/issues/658#issuecomment-617873253 will show up.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the command shown in the issue: sops -d encrypted_secret.json --output decrypted_secret.json, then trace the command-line argument handling that accepts flags after the filename. Done means this ordering no longer silently ignores --output and its value, but instead reports an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.