Page MenuHomeSoftware Heritage

CLI: require explicit "-" to identify via stdin
ClosedPublic

Authored by zack on Apr 17 2020, 5:25 PM.

Diff Detail

Repository
rDMOD Data model
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3029 (id=10759)

Rebasing onto 6ac6cb7517...

Current branch diff-target is up to date.
Changes applied before test
commit 7b2cc1fafd9174369897668e760cd20134b2bab9
Author: Stefano Zacchiroli <zack@upsilon.cc>
Date:   Fri Apr 17 17:25:03 2020 +0200

    CLI: require explicit "-" to identify via stdin

See https://jenkins.softwareheritage.org/job/DMOD/job/tests-on-diff/38/ for more details.

olasd added a subscriber: olasd.

As suggested on IRC, you can just set required=True on @click.argument (and drop the if not objects:). But either way works.

This revision is now accepted and ready to land.Apr 17 2020, 5:30 PM