Merge lp:~colin-king/powerd/lp-1231455 into lp:powerd

Proposed by Colin Ian King
Status: Merged
Approved by: Ricardo Salveti
Approved revision: 114
Merged at revision: 114
Proposed branch: lp:~colin-king/powerd/lp-1231455
Merge into: lp:powerd
Diff against target: 45 lines (+13/-13)
1 file modified
cli/powerd-cli.c (+13/-13)
To merge this branch: bzr merge lp:~colin-king/powerd/lp-1231455
Reviewer Review Type Date Requested Status
Seth Forshee (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+208844@code.launchpad.net

Commit message

Minor tidy up and corrections to powerd cli help (LP: #1231455)

Description of the change

Minor clean up of powerd-cli, fixes my quibbles in LP: #1231455

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:114
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~colin-king/powerd/lp-1231455/+merge/208844/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/powerd-ci/140/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/powerd-trusty-armhf-ci/10
        deb: http://jenkins.qa.ubuntu.com/job/powerd-trusty-armhf-ci/10/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/powerd-ci/140/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Seth Forshee (sforshee) wrote :

+1

I actually started to do a big rewrite of cli while on a flight last month which would have ultimately resulted in cleaning up the help text, but I never got around to finishing it. Guess I should find time to do that sometime, becasue atm it's a bit of a mess.

review: Approve
Revision history for this message
Seth Forshee (sforshee) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cli/powerd-cli.c'
2--- cli/powerd-cli.c 2013-09-24 14:49:49 +0000
3+++ cli/powerd-cli.c 2014-02-28 15:44:52 +0000
4@@ -962,28 +962,28 @@
5 printf("active - request the active state, prevent the system from\n"\
6 "\tsuspending. This does not modify the screen state.\n");
7 printf("active-nc - same as active, but relies on powerd to cleanup\n"\
8- "\tthe request. This is only for testing and will immediately"\
9+ "\tthe request. This is only for testing and will immediately\n"\
10 "exit, causing the request to be dropped.\n");
11- printf("autobrightness <enable|disable> - enable or disable autobrightness\n");
12- printf("brightness <brightness> - set user screen brightness\n");
13+ printf("autobrightness <enable|disable> - enable or disable autobrightness.\n");
14+ printf("brightness <brightness> - set user screen brightness.\n");
15 printf("brightness-params - get brightness parameters (min, max, etc.)\n");
16- printf("clear-sys <cookie> - clear a System state request given a cookie\n");
17- printf("clear-disp <cookie> - clear a Display state request given a cookie\n");
18- printf("client-test - test powerd registration / ack API\n");
19+ printf("clear-sys <cookie> - clear a System state request given a cookie.\n");
20+ printf("clear-disp <cookie> - clear a Display state request given a cookie.\n");
21+ printf("client-test - test powerd registration / ack API.\n");
22 printf("display <on|dc> [bright] [proximity] [disableab]\n"\
23 "\tMake a display state request with the input parameters.\n"\
24 "\tThe first argument represents the state of the display:\n"\
25- "\tOn, Off, or Don't Care (dc).\n"\
26+ "\tOn (on) or Don't Care (dc),\n"\
27 "\tThe final optional arguments respectively:\n"\
28 "\t * make the screen bright [bright]\n"\
29 "\t * enable the proximity sensor [proximity]\n"\
30 "\t * disable autobrightness [disableab]\n");
31- printf("help - display this usage information\n");
32- printf("list - list outstanding requests\n");
33- printf("listen - listen for signals from powerd. This runs a\n"\
34- "\tgmainloop and must be manually killed.\n");
35- printf("stats - print request statistics\n");
36- printf("test - runs tests\n");
37+ printf("help\t- display this usage information.\n");
38+ printf("list\t- list outstanding requests.\n");
39+ printf("listen\t- listen for signals from powerd. This runs a\n"\
40+ "\t gmainloop and must be manually killed.\n");
41+ printf("stats\t- print request statistics.\n");
42+ printf("test\t- runs tests.\n");
43 }
44
45 static void

Subscribers

People subscribed via source and target branches