Usage

Summary

Returns the syntax for the specified tool or function.

Syntax

Usage (tool_name)
ParameterExplanationData Type
tool_name

The tool name to display the syntax.

String
Return Value
Data TypeExplanation
String

Returns a string containing the specified tool's syntax.

Code Sample

Usage example

Print specified tool's syntax.

import arcpy

print arcpy.Usage("Buffer_analysis")
print arcpy.Usage("MakeFeatureLayer_management")

Related Topics


10/28/2011