Re: Commandline interface for 8.0

"Bjorn L." <[email protected]>
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <[email protected]>
Mike,

Thanks for tackling this.  Some thoughts:


> --encode
> --output stdout [default], mail
> --format text [default], html

An alternative is:
-- format html|encode

where multiple values allowed.  So
    --format html                      produces html
    --format encode                    encodes text
    --format html --format encode      produces html, then encoded
    --format encode --format html      same as previous

Alternatively, it could be --format "html,encode" but I don't know
if that's as easily done in GetOpt.

Also, maybe use "base64" instead of "encode".

So there does not need to be a --format text, but text is produced if
no --format specified.

Zip could also be another option for the format (--format zip)
instead of its own option.


> --mailto [flips output mail]

 From an implementation point of view, a warning could be printed if
--mailto or --save (or --file) are specified, but the corresponding
--output is not set properly.  This is not possible today (pre-8.0).

> --save [flips output stdout]

Or maybe --file or --filename (I think that may be more common in
UNIX/Linux when a filename is called for).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.