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

Database Interaction Options #25

Closed
5 tasks done
HalosGhost opened this issue Aug 13, 2015 · 2 comments
Closed
5 tasks done

Database Interaction Options #25

HalosGhost opened this issue Aug 13, 2015 · 2 comments

Comments

@HalosGhost
Copy link
Owner

Prerequisites:

Required functionality:

  • Add -m | --message support
  • Do nothing but initialize the database (will not overwrite a db): -i
  • Delete local paste data by UUID: -d
  • Query pastes locally matching any field in the paste: -q
@HalosGhost
Copy link
Owner Author

41e50a0 completes the basic -q implementation.

@HalosGhost
Copy link
Owner Author

I considered having -q take an optional argument. Unfortunately, getopt() has a not-well-documented limitation when using optional arguments.

The result is that the most common ways people would interact with pbpst would not work the way we expect. The patch for the change is attached here in case anyone is interested or can improve on it later. But for now, we will not merge it.

optarg.patch

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