After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 563909 - Canonicalize command line options
Canonicalize command line options
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
git master
Other All
: Normal normal
: ---
Assigned To: Jamie McCracken
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2008-12-09 20:50 UTC by Luca Ferretti
Modified: 2009-01-07 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for tracker-files utility (1.72 KB, patch)
2008-12-09 20:59 UTC, Luca Ferretti
committed Details | Review

Description Luca Ferretti 2008-12-09 20:50:33 UTC
As discussed on maling list, some command line option are using wrong option description. For example:

   -s, --service    <description>

should be
   -s, --service=STRING <description>

The fist in fact says that the --service option don't want any argument, i.e. that `tracker-tool --service ~/Downloads` is valid, while `tracker-tool --service=Music ~/Downloads` not. This is of course wrong.

Patches will come.
Comment 1 Luca Ferretti 2008-12-09 20:59:11 UTC
Created attachment 124306 [details] [review]
Patch for tracker-files utility

Produced output:
  -s, --service=STRING      Search for specified service
  -l, --limit=NUMBER        Set the total number of displayed results (default 512)
  -o, --offset=NUMBER       Set the offset for displayed results (default 0)
  -m, --add-mime=STRING     Search for specified MIME type (can be used multiple times)


Additional stuff:
 * remove a duplicate locale.h
 * add translators comments for arguments
 * little changes in description (IMHO better, but please comment)
 * fix g_option_context_add_main_entries() (no custom translate_domain for this tool)

Dunno:
 * NUMBER or INT ??
Comment 2 Ivan Frade 2009-01-07 15:49:30 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

Committed. Thanks for the patch!