That is due to the version of code you are running
I found the following snippet in a pdf from cisco
"beginning with CiscoIOSRelease 15.2(4)E, or IOS XE 3.8.0E, if you enter the spanning-tree portfast [trunk] command in the global or interface configuration mode, the system automatically...