def printUsageAndExit()

in content/artifacts/daytrader_singleServer.py [0:0]


def printUsageAndExit ():
    # start of print block
	print """
	
Usage: wsadmin -f <location of>daytrader_singleServer.py <options> where 
         <options> is zero or more of the following
   --help              Display this usage information.
   --prompt            Whether or not to prompt for input. Valid values are:
                          true (default)
                          false
   -a, --action action Action to perform. Valid values are:
                          all (default) - configures JDBC and JMS resources 
                             and installs the app
                          configure - only configure the JDBC and JMS resource
                          cleanup - remove the JDBC and JMS resources
                          install - install the DayTrader ear
                          uninstall - uninstall the DayTrader ear
   -e, --earfile ear   The location of the earfile to install when the
                       action is 'all' or 'install'. The default
                       is 'daytrader-ear-2.1.3.ear' located in the same
                       directory from which wsadmin is being run.
                       (Note: This is only used for the 'all' or
                       'install' action.)                         
   -s, --security sec  The current status of security. Valid values are:
                          disabled (default)
                          enabled
                       The --userid and --password options are required if 
                       security is enabled.
                       (Note: This is only used for the 'all' or
                       'configure' action.)
   -u, --userid userid The administrative userid to use for JMS. This is
                       required if --security is enabled.
   --password pw       The administrative password to use for JMS. This is
                       required if --security is enabled.
	
	"""
	# end of print block

	sys.exit()