Offset with flat cap Alias

Hi everyone, quick question:
How can I make an Alias so that it turns the “cap” feature of the offset command to “flat”, makes the offset, and then sets it back to “none”?

Thank you!!

The command remembers the last state of the cap option. Therefore you cannot set it back to none without calling the command again. Then you can just set the option to none and cancel the command with the exclamation mark.

This should work but not tested:

offset a f pause pause enter offset a n !

It works perfectly, thanks a lot!!