[Osgeo4w-trac] Re: [osgeo4w] #53: pkg-apt: "apt [command]" with no
parameters does not return an error or message
OSGeo4W
trac_osgeo4w at osgeo.org
Tue Mar 24 16:51:20 EDT 2009
#53: pkg-apt: "apt [command]" with no parameters does not return an error or
message
-------------------+--------------------------------------------------------
Reporter: maphew | Owner: maphew
Type: defect | Status: assigned
Priority: major | Component: Installer
Version: | Resolution:
Keywords: apt |
-------------------+--------------------------------------------------------
Changes (by maphew):
* status: new => assigned
* summary: pkg-apt: "apt remove" with no parameters does not return an
error => pkg-apt: "apt [command]" with no
parameters does not return an error or message
Comment:
The problem is actually more generalised, most of the commands do not
return an error or usage message if the required parameter(s) are not
there. This might be a good opportunity to look into using `optparse`
instead of `getopt` (c.f. [http://stackoverflow.com/questions/20063/whats-
the-best-way-to-grab-parse-command-line-arguments-passed-to-a-python-scrip
Stack Overflow: parse command line]). This would also deal with ''# FIXME:
list only usable command line parameters, not all functions'' in `def
usage` at the same time.
--
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/53#comment:1>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list