def print_help(options, args):
 parser = options.__parser
 if (not args):
  parser.print_help()
 else:
  number_of_commands = len(args)
  if (number_of_commands == 1):
   command_name = args.pop()
   command = lookup_command(parser, command_name)
   print((command.__doc__ % {'prog': os.path.basename(sys.argv[0])}))
  else:
   sys.exit('Please specify one command')

def print_help ( options , args ) : parser = options . __parser if ( not args ) : parser . print_help ( ) else : number_of_commands = len ( args ) if ( number_of_commands == 1 ) : command_name = args . pop ( ) command = lookup_command ( parser , command_name ) print ( ( command . __doc__ % { 'prog' : os . path . basename ( sys . argv [ 0 ] ) } ) ) else : sys . exit ( 'Please specify one command' )
print help specific to a command .