ncoronado / tracshell

Automatically exported from code.google.com/p/tracshell
1 stars 0 forks source link

separate args by spaces instead of ampersands #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This looks interesting.  I'm not a Trac user, but I thought I'd provide a small 
amount of
feedback.  The query command apparently requires parameters to be separated by 
&.
Most shells separate command line args with spaces, e.g.:

    query owner=bob priority=critical

or even

    query --owner=bob --priority=critical

Skip

Original issue reported on code.google.com by skip.mon...@gmail.com on 26 Feb 2009 at 2:22

GoogleCodeExporter commented 8 years ago
Thanks for the suggestion, will look into it. :)

Original comment by j.kennet...@gmail.com on 26 Feb 2009 at 5:46

GoogleCodeExporter commented 8 years ago

Original comment by j.kennet...@gmail.com on 26 Feb 2009 at 5:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
would have to use '--' version to preserve white space values.

Original comment by j.kennet...@gmail.com on 26 Feb 2009 at 6:07

GoogleCodeExporter commented 8 years ago
    >> Would a designator be fine?

    >> query -component=some component with whitespace -version=2.0

Not sure what a "designator" is.  Why not just require quotes around args
with spaces like a typical shell?

    query --component="some comp w/ whitespace" --version=2.0

I assume this is written in Python.  If so, the shutil and/or optparse
modules should suffice to pick apart the command line args I think.

Skip

Original comment by skip.mon...@gmail.com on 26 Feb 2009 at 6:27

GoogleCodeExporter commented 8 years ago
Issue 10 has been merged into this issue.

Original comment by j.kennet...@gmail.com on 1 Mar 2009 at 7:08

GoogleCodeExporter commented 8 years ago

Original comment by j.kennet...@gmail.com on 1 Mar 2009 at 10:52