Commit 4dea6120 authored by Vincent Pelletier's avatar Vincent Pelletier

Simplify test by reversing it.

parent 6ee33971
......@@ -120,11 +120,10 @@ def main(*args):
parser.add_argument("--pidfile", help="The location where pidfile will be created.")
parser.add_argument("configuration_file", nargs=1, type=argparse.FileType(),
help="Slap Test Agent configuration file.")
if args == ():
argument_option_instance = parser.parse_args()
if args:
argument_option_instance = parser.parse_args(list(args))
else:
argument_option_instance = \
parser.parse_args(list(args))
argument_option_instance = parser.parse_args()
option_dict = {}
configuration_file = argument_option_instance.configuration_file[0]
for argument_key, argument_value in vars(argument_option_instance
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment