Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable user to choose how comparison is performed #1

Closed
delphidabbler opened this issue Mar 24, 2014 · 1 comment
Closed

Enable user to choose how comparison is performed #1

delphidabbler opened this issue Mar 24, 2014 · 1 comment

Comments

@delphidabbler
Copy link
Collaborator

Implement a command line option that specifies how comparison is performed.

Option could be something like -c xxx and/or --compare=xxx where xxx is one of:

  • lt - check if file 1 date < file 2 date (i.e. file 1 is strictly older) - this is the current action and could be left as default.
  • lte - check if file 1 date <= file 2 date (i.e.file 1 is older or same as file 2)
  • eq - check if both file dates are the same
  • gte - check if file 1 date >= file 2 date (i.e. file 1 is newer or same as file 2)
  • gt - check if file 1 date > file 2 date (i.e. file 1 is strictly newer)

Return 1 if the conditions apply or 0 if conditions fail.

@delphidabbler delphidabbler added this to the next-release milestone Mar 25, 2014
@delphidabbler delphidabbler self-assigned this Mar 25, 2014
delphidabbler pushed a commit that referenced this issue Mar 27, 2014
@delphidabbler
Copy link
Collaborator Author

Also added neq "operator" to list above and added numerous aliases for each operator.

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

No branches or pull requests

1 participant