feat: add -v|--version flag
This commit is contained in:
@@ -4,6 +4,7 @@ import sys
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
|
||||
from . import __version__
|
||||
from .commands import registry
|
||||
from .configure import Configuration
|
||||
from .logger import setup_logger, get_logger, handle_error
|
||||
@@ -20,6 +21,12 @@ def create_parser():
|
||||
epilog="WARNING: This tool deletes your Bluesky data permanently."
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-v", "--version",
|
||||
action="version",
|
||||
version=f"Skywipe {__version__}"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--yes",
|
||||
action="store_true",
|
||||
|
||||
Reference in New Issue
Block a user