Skip to content

Commit

Permalink
Give clearer message if no instrument is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jul 29, 2024
1 parent 02ad783 commit e590702
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/finddata/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def main():
print("finddata version " + __version__)
sys.exit(0)

if not options.inst:
parser.error("Failed to specify an instrument")
options.inst = options.inst.upper()
options.facility = FACILITY[options.inst]

Expand Down

0 comments on commit e590702

Please sign in to comment.