Merge lp://staging/~jelmer/lptools/command-option into lp://staging/lptools

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: 30
Merged at revision: 30
Proposed branch: lp://staging/~jelmer/lptools/command-option
Merge into: lp://staging/lptools
Diff against target: 56 lines (+15/-0)
2 files modified
bin/lp-shell (+10/-0)
doc/lp-shell.1 (+5/-0)
To merge this branch: bzr merge lp://staging/~jelmer/lptools/command-option
Reviewer Review Type Date Requested Status
Martin Pool Approve
Review via email: mp+76770@code.staging.launchpad.net

Description of the change

Add a -c option to lp-shell.

Example:

Am I a Ubuntu developer ?
$ ./bin/lp-shell -c 'print lp.me in lp.people["ubuntu-dev"].participants'

To post a comment you must log in.
Revision history for this message
Martin Pool (mbp) wrote :

> run the specified Python program

[query] I wonder if people would expect 'program' is a file containing a program. You could add an example or say eg 'code'.

review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks, merged with a tweak to the option description.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches