mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-28 19:26:14 +02:00
Fixed a bug with the new 'encoding' function when using Stegano as a command line tool. No default value was set. Default value is UTF-8.
This commit is contained in:
parent
d942f8bdfb
commit
5ec1f338b2
3 changed files with 5 additions and 5 deletions
|
@ -42,7 +42,7 @@ parser_hide = subparsers.add_parser('hide', help='hide help')
|
|||
parser_hide.add_argument("-i", "--input", dest="input_image_file",
|
||||
required=True, help="Input image file.")
|
||||
parser_hide.add_argument("-e", "--encoding", dest="encoding",
|
||||
choices=tools.ENCODINGS.keys(),
|
||||
choices=tools.ENCODINGS.keys(), default='UTF-8',
|
||||
help="Specify the encoding of the message to hide." +
|
||||
" UTF-8 (default) or UTF-32LE.")
|
||||
|
||||
|
@ -64,7 +64,7 @@ parser_reveal = subparsers.add_parser('reveal', help='reveal help')
|
|||
parser_reveal.add_argument("-i", "--input", dest="input_image_file",
|
||||
required=True, help="Input image file.")
|
||||
parser_reveal.add_argument("-e", "--encoding", dest="encoding",
|
||||
choices=tools.ENCODINGS.keys(),
|
||||
choices=tools.ENCODINGS.keys(), default='UTF-8',
|
||||
help="Specify the encoding of the message to reveal." +
|
||||
" UTF-8 (default) or UTF-32LE.")
|
||||
parser_reveal.add_argument("-o", dest="secret_binary",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue