mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
chg: [command] The selection of a sub-command is mandatory.
This commit is contained in:
parent
3b619afa17
commit
0f8b0cef1f
5 changed files with 7 additions and 5 deletions
|
@ -55,7 +55,8 @@ class ValidateGenerator(argparse.Action):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(prog="stegano-lsb")
|
parser = argparse.ArgumentParser(prog="stegano-lsb")
|
||||||
subparsers = parser.add_subparsers(help="sub-command help", dest="command")
|
subparsers = parser.add_subparsers(
|
||||||
|
help="sub-command help", dest="command", required=True)
|
||||||
|
|
||||||
# Subparser: Hide
|
# Subparser: Hide
|
||||||
parser_hide = subparsers.add_parser("hide", help="hide help")
|
parser_hide = subparsers.add_parser("hide", help="hide help")
|
||||||
|
@ -85,6 +86,7 @@ def main():
|
||||||
action=ValidateGenerator,
|
action=ValidateGenerator,
|
||||||
nargs="*",
|
nargs="*",
|
||||||
required=False,
|
required=False,
|
||||||
|
default=None,
|
||||||
help="Generator (with optional arguments)",
|
help="Generator (with optional arguments)",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ import argparse
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from stegano.steganalysis import parity
|
from stegano.steganalysis import parity
|
||||||
except:
|
except Exception:
|
||||||
print("Install Stegano: pipx install Stegano")
|
print("Install Stegano: pipx install Stegano")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import argparse
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from stegano import red
|
from stegano import red
|
||||||
except:
|
except Exception:
|
||||||
print("Install stegano: sudo pip install Stegano")
|
print("Install stegano: sudo pip install Stegano")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ import argparse
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from stegano.steganalysis import statistics
|
from stegano.steganalysis import statistics
|
||||||
except:
|
except Exception:
|
||||||
print("Install Stegano: sudo pip install Stegano")
|
print("Install Stegano: sudo pip install Stegano")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "stegano"
|
name = "stegano"
|
||||||
version = "0.11.0"
|
version = "0.11.1"
|
||||||
description = "A pure Python Steganography module."
|
description = "A pure Python Steganography module."
|
||||||
authors = [
|
authors = [
|
||||||
"Cédric Bonhomme <cedric@cedricbonhomme.org>"
|
"Cédric Bonhomme <cedric@cedricbonhomme.org>"
|
||||||
|
|
Loading…
Add table
Reference in a new issue