mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-27 05:47:20 +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,
|
required=False,
|
||||||
help="Full path to alternative external backend binary",
|
help="Full path to alternative external backend binary",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"-V", "--version", action="store_true", help="Show program version"
|
||||||
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.version:
|
||||||
|
print(version_string)
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if args.log_file:
|
if args.log_file:
|
||||||
log_file = args.log_file
|
log_file = args.log_file
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue