@@ -50,13 +50,15 @@ def parser_cli():
5050 """
5151 parser = argparse .ArgumentParser (description = desc )
5252 parser .add_argument ("--co-author" ,
53- help = "make your friend an co-author to the commit" ,
53+ help = "Make your friend an co-author to the commit" ,
5454 dest = "co_author" , default = '' )
55- parser .add_argument ("--no-generate " , dest = "no_file" ,
56- help = "disables the creation of a commiter.yml file" ,
57- default = False , type = bool )
55+ parser .add_argument ("--no-file " , dest = "no_file" ,
56+ help = "Disables the creation of a commiter.yml file" ,
57+ action = "store_true" )
5858 parser .add_argument ("--convention" , choices = supported_conventions ,
5959 dest = "convention" , default = '' , help = help_convention )
60+ parser .add_argument ('--debug' , action = "store_true" , dest = "debug" ,
61+ help = "Toggles debug option" )
6062 return parser
6163
6264
@@ -68,6 +70,4 @@ def change_if_none(string):
6870
6971def debug (message , value , show = False ):
7072 if show :
71- print ("\n -------DEBUG--------" )
72- print ("%s: %s" % (message , value ))
73- print ("--------END---------\n " )
73+ print ("DEBUG-> %s: %s" % (message , value ))
0 commit comments