Skip to content

lalapps_SFTvalidate: output filename to stdout if valid, add help message and version info options

Karl Wette requested to merge (removed):SFTvalidate-help-output into master

Description

Improved output for lalapps_SFTvalidate:

  • Output version info if (and only if) a -v or --version option is supplied (then exit)
  • Output a brief usage message if a -h or --help option is supplied (then exit); closes #406 (closed)
  • Output filename to stdout if valid, otherwise output error message to stderr. This supports the usage
find -name '*.sft' | lalapps_SFTvalidate >valid-sfts.txt 2>errors.log

which will return a list of valid SFTs in valid-sfts.txt, and any errors in errors.log

API Changes and Justification

Backwards Compatible Changes

  • This change introduces no API changes
  • This change adds new API calls

Backwards Incompatible Changes

  • This change modifies an existing API
  • This change removes an existing API

Review Status

N/A

Edited by Karl Wette

Merge request reports