Here is an example dialog.

Selected text:

Custom arg: