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