Opened 16 years ago
Closed 13 years ago
#53 closed defect (fixed)
pkg-apt: "apt [command]" with no parameters does not return an error or message
Reported by: | maphew | Owned by: | maphew |
---|---|---|---|
Priority: | major | Component: | Installer |
Version: | Keywords: | apt | |
Cc: |
Description
apt remove
returns nothing, when it should return something like "remove what? Use 'apt list' to see currently installed packages."
Change History (2)
comment:1 by , 16 years ago
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:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [1188]) close #53. All commands should now exit gracefully with msg if incomplete.
def_version(): report version of named package instead of all versions; moved reporting of all to def_versions(). There is overlap between this and def_list() which also reports all versions, as well as possible upgrades. FIXME: remove versions from def_list? would allow easier piping.
Note:
See TracTickets
for help on using tickets.
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 ofgetopt
(c.f. Stack Overflow: parse command line). This would also deal with # FIXME: list only usable command line parameters, not all functions indef usage
at the same time.