Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191354 - [PATCH] www-client/pybugz-0.7.0, add option cmd line option for description to attach
Summary: [PATCH] www-client/pybugz-0.7.0, add option cmd line option for description t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-09-05 09:37 UTC by Togge
Modified: 2007-09-08 20:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
../pybugz-0.7.0-attach-description.patch (pybugz-0.7.0-attach-description.patch,1.55 KB, text/plain)
2007-09-05 09:39 UTC, Togge
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Togge 2007-09-05 09:37:52 UTC
A patch that adds a '-d', '--description' option to attach for adding the description from the commandline.
Comment 1 Togge 2007-09-05 09:39:28 UTC
Created attachment 130066 [details]
../pybugz-0.7.0-attach-description.patch

pybugz-0.7.0-attach-description.patch
Comment 2 Santiago M. Mola (RETIRED) gentoo-dev 2007-09-06 12:15:52 UTC
Patch applied in SVN, r22. Thanks!
Comment 3 William Hubbs gentoo-dev 2007-09-06 23:39:21 UTC
If I run:

bugz attach -h

I get the following:

usage: bugz attach <bugid> <filename> [-c=<mimetype>]

 Attach a file to a bug given a filename.

options:
  -d DESCRIPTION, --description=DESCRIPTION
                        A description of the attachment.
  -c CONTENT_TYPE, --content_type=CONTENT_TYPE
                        Mimetype of the file (default: text/plain)
  -h, --help            show this help message and exit

  Can you please update the patch to give something like:

usage: bugz attach <bugid> <filename> [-c=<mimetype>] [-d=description]

 Attach a file to a bug given a filename.

options:
  -c CONTENT_TYPE, --content_type=CONTENT_TYPE
                        Mimetype of the file (default: text/plain)
  -d DESCRIPTION, --description=DESCRIPTION
                        A description of the attachment.
  -h, --help            show this help message and exit

Thamks much.

William

Comment 4 William Hubbs gentoo-dev 2007-09-08 20:09:08 UTC
I have fixed the attach action so that
pybugz attach -h
now shows the -d option in the usage.  This is in svn.