Skip to content

Commit

Permalink
add way to override args in main
Browse files Browse the repository at this point in the history
  • Loading branch information
javierggt committed Oct 30, 2024
1 parent e5fa589 commit 1354fc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acq_stat_reports/scripts/acq_stat_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ def get_parser():
return parser


def main():
def main(sys_args=None):
import matplotlib

matplotlib.use("agg")

args = get_parser().parse_args()
args = get_parser().parse_args(sys_args)

logger.setLevel(args.v.upper())

Expand Down

0 comments on commit 1354fc2

Please sign in to comment.