[rt-devel] Confusing user interface in commandline rt

Rich Lafferty rich+rt at lafferty.ca
Mon Jun 3 14:05:28 EDT 2002


Having just spent a half hour recovering from a mistyped command,
I have a suggestion regarding the UI of the rt command-line tool.
I suspect it's more oriented towards 2.1 than 2.0, if only because
changing the arguments rt accepts midway through 2.0 might be 
inappropriate.

We currently have:
          --status=<new|open|stalled|resolved|dead>
          --subject=<subject>
          --owner=<userid>
          --queue=<queueid>
and so forth, and we also have
          --id=<id>

But --id *selects* by id, and --queue *CHANGES* the ticket's queue! 
I propose that --queue should be synonymous with --limit-queue, and
destructive options should be explicitly so, like "--set-queue". 

The command which was messy was this:

  /opt/rt2/bin/rt --queue=Hostmaster --summary

which happily went through and changed all of my tickets into the
Hostmaster queue until I noticed something was amiss and hit ^C. :(

  -Rich

-- 
Rich Lafferty --------------+-----------------------------------------------
 Ottawa, Ontario, Canada    |  Save the Pacific Northwest Tree Octopus!
 http://www.lafferty.ca/    |    http://zapatopi.net/treeoctopus.html
rich at lafferty.ca -----------+-----------------------------------------------




More information about the Rt-devel mailing list