Skip to content

Added options for until, reverse and output.#7

Open
whiskeyonrocks wants to merge 4 commits intojue89:masterfrom
whiskeyonrocks:master
Open

Added options for until, reverse and output.#7
whiskeyonrocks wants to merge 4 commits intojue89:masterfrom
whiskeyonrocks:master

Conversation

@whiskeyonrocks
Copy link

No description provided.

if (opts.utc) args.push('--utc');
if (opts.identifier) args.push('-t', opts.identifier);
if (opts.unit) args.push('-u', opts.unit);
if (opts.output && supportedOutputFormats.includes(opts.output)) args.push('-o', opts.output);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for specifying the output format? The library always converts the stream to JS objects.

if (opts.lines) args.push('-n', opts.lines);
if (opts.since) args.push('-S', opts.since);
if (opts.until) args.push('-U', opts.until);
if (opts.reverse) args.push('-r');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This contradicts the '-f' argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants