title: How to add a p4sql query as a Perforce custom tool argument?
body: <p>I'm trying to add <a href="https://stackoverflow.com/questions/134103/how-do-you-search-the-text-of-changelist-descriptions-in-perforce">this p4sql query</a> as a Custom Tool in P4V (Windows) by adding p4sql.exe as the application and </p>
  
  <pre><code>-s "select * from changes where lcase(description) like '$%$D$%' and p4options='longdesc';"
  </code></pre>
  
  <p>as Arguments.</p>
  
  <p>When I execute the command and enter '123' as input, the following error comes back:</p>
  
  <pre><code>p4sql error:
      Usage: p4sql -h for usage.
      Option: 12 is undefined.
  </code></pre>
  
  <p>What escape mechanism am I missing?</p>