Coverage for sparkle/CLI/about.py: 71%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-27 09:10 +0000

1#!/usr/bin/env python3 

2"""Sparkle command to show information about Sparkle.""" 

3import argparse 

4import sparkle 

5 

6 

7def parser_function() -> argparse.ArgumentParser: 

8 """Define the command line arguments. 

9 

10 Returns: 

11 The argument parser. 

12 """ 

13 parser = argparse.ArgumentParser() 

14 return parser 

15 

16 

17if __name__ == "__main__": 

18 print("\n".join([ 

19 f"Sparkle ({sparkle.about.description})", 

20 f"Version: {sparkle.about.version}", 

21 f"Licence: {sparkle.about.licence}", 

22 f'Written by {", ".join(sparkle.about.authors[:-1])},\ 

23 and {sparkle.about.authors[-1]}', 

24 f"Contact: {sparkle.about.contact}", 

25 "For more details see README.md"]))