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:
Cédric Bonhomme 2017-12-20 22:17:03 +01:00
parent d942f8bdfb
commit 5ec1f338b2
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
3 changed files with 5 additions and 5 deletions

View file

@ -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",

View file

@ -46,7 +46,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.")
@ -74,7 +74,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("-g", "--generator", dest="generator_function",

View file

@ -29,7 +29,7 @@ with open('CHANGELOG.rst', 'r') as f:
setup(
name='Stegano',
version='0.8.1',
version='0.8.2',
author='Cédric Bonhomme',
author_email='cedric@cedricbonhomme.org',
packages=packages,