mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-22 19:37:30 +08:00
GUI: Add --version parameter
This commit is contained in:
parent
24610f1c58
commit
48722ea50e
1 changed files with 8 additions and 0 deletions
|
@ -682,7 +682,15 @@ def _main_gui(viewer_mode: bool):
|
|||
required=False,
|
||||
help="Full path to alternative external backend binary",
|
||||
)
|
||||
parser.add_argument(
|
||||
"-V", "--version", action="store_true", help="Show program version"
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.version:
|
||||
print(version_string)
|
||||
sys.exit(0)
|
||||
|
||||
if args.log_file:
|
||||
log_file = args.log_file
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue