View Single Post
Self-Perfection's Avatar
Posts: 8 | Thanked: 4 times | Joined on Oct 2011 @ Russia
#7
Originally Posted by ejjoman View Post
I'm working on a little Qt console application for this

How should the output look like? Any suggestions?
I would like to be able to specify output format by myself with comman line switches. Consider adding --format switch with some substitute variables like this:
%a - application name
%t - message title
%b - message body
%c - count
%i - id
%ps - preview summary
%pb - preview body
<here should be a few more>

As default format I propose following string
"%a - %c %t\n%b\n\n"

It should be handy to add a couple shorthand switches for common variants of requests. Like --oneline for
--format "%a - %c %t\n"
and --raw for complete listing of all parameters of notification.

Last edited by Self-Perfection; 2015-02-11 at 15:46.
 

The Following User Says Thank You to Self-Perfection For This Useful Post: