#NEWLINE# @ utils . arg ( '-n' , '--name' , help = 'Script name' , required = True ) #NEWLINE# @ utils . arg ( '-f' , '--file' , help = 'Script file' , required = False ) #NEWLINE# def do_pyscripts_script_create( cc , args = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# 'Create a script.' #NEWLINE# script_args = { #NEWLINE# #INDENT# 'name' : args . name , #NEWLINE# #UNINDENT# } #NEWLINE# if args . file : #NEWLINE# #INDENT# with open ( args . file ) as fp : #NEWLINE# #INDENT# script_args [ 'data' ] = fp . read ( ) #NEWLINE# #UNINDENT# #UNINDENT# out = cc . pyscripts . scripts . create ( ** script_args ) #NEWLINE# utils . print_dict ( out . to_dict ( ) )