Skip to content

Commit

Permalink
Update src/hyp3_isce2/insar_tops_burst.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Player <[email protected]>
  • Loading branch information
forrestfwilliams and AndrewPlayer3 authored Aug 23, 2024
1 parent 89fe40e commit d1bdd9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hyp3_isce2/insar_tops_burst.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ def main():
has_granules = args.granules is not None and len(args.granules) > 0
has_ref_sec = args.reference is not None and args.secondary is not None
if has_granules and has_ref_sec:
parser.error('Either the positional granules argument, or --reference and --secondary must be specified.')
parser.error('Provide either --reference and --secondary, or the positional granules argument, not both.')
elif not has_granules and not has_ref_sec:
parser.error('Only the positional granules argument, or --reference and --secondary must be specified.')
parser.error('Either --reference and --secondary, or the positional granules argument, must be provided.')
elif has_granules:
warnings.warn(
'The positional argument for granules is deprecated. Please use --reference and --secondary.',
Expand Down

0 comments on commit d1bdd9a

Please sign in to comment.