Fix ad-hoc command examples
Merge pull request #6380 from sivel/best-practice-adhoc

ad-hoc doc fixes