Merge lp:~smoser/pollinate/trunk.print-user-agent into lp:~pollinate/pollinate/trunk

Proposed by Scott Moser
Status: Merged
Merged at revision: 365
Proposed branch: lp:~smoser/pollinate/trunk.print-user-agent
Merge into: lp:~pollinate/pollinate/trunk
Diff against target: 29 lines (+8/-0)
2 files modified
pollinate (+5/-0)
pollinate.1 (+3/-0)
To merge this branch: bzr merge lp:~smoser/pollinate/trunk.print-user-agent
Reviewer Review Type Date Requested Status
pollinate Pending
Review via email: mp+337395@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Scott Moser (smoser) wrote :

also makes testing changes to user-agent easier.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pollinate'
2--- pollinate 2018-01-30 22:28:52 +0000
3+++ pollinate 2018-02-08 22:29:39 +0000
4@@ -263,6 +263,11 @@
5 WAIT="$2"
6 shift 2
7 ;;
8+ --print-user-agent)
9+ user_agent || error "Failed to get user-agent."
10+ echo "${USER_AGENT}"
11+ exit
12+ ;;
13 *)
14 error "Unknown options [$1]"
15 ;;
16
17=== modified file 'pollinate.1'
18--- pollinate.1 2016-05-05 22:08:16 +0000
19+++ pollinate.1 2018-02-08 22:29:39 +0000
20@@ -45,6 +45,9 @@
21 .TP
22 \fB-w|--wait\fP WAIT
23 time in seconds you're willing to wait for a response from the server, uses \fBtimeout\fP(1)
24+.TP
25+\fB --print-user-agent\fP
26+Print the user-agent that is used and exit immediately.
27
28 .SH SEE ALSO
29 \fBpollen\fP(8), \fBtimeout\fP(1)

Subscribers

People subscribed via source and target branches

to all changes: