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

post bug? #11

Closed
rlp10 opened this issue Dec 25, 2012 · 4 comments
Closed

post bug? #11

rlp10 opened this issue Dec 25, 2012 · 4 comments
Labels

Comments

@rlp10
Copy link

rlp10 commented Dec 25, 2012

I'm running people on ubuntu 10.04 with ruby 1.9.3p327.

All the commands seem to work properly, except the 'post' command.

> ppl post me "1 Testing Road"
> ppl post me
>

Shouldn't that print back my postal address, like the other commands?

@axelGschaider
Copy link

completely offtopic: thanks. Now I figured out what "ppl" stands for :)

@henrycatalinismith
Copy link
Owner

Please don't bother following these instructions. I misread the original question as a potential bug instead of incorrect usage and as a result this entire comment is worthless. Sorry.

Hi there!

Glad to hear you've at least had some luck! But you're right, ppl post me should be printing the postal address of that contact. I have a few questions whose answers would help me narrow down the cause of the problem:

  • What version of ppl are you running?
    gem list --local | grep ppl
  • Does the contact me definitely exist in the address book?
    ppl post | grep "^me:"

@henrycatalinismith
Copy link
Owner

Wait a second, I've been a bit careless here and failed to properly read your example code.

That usage of ppl post is incorrect I'm afraid. It doesn't work in quite the same way as other commands such as ppl email because postal addresses are quite complex beasts made up of several distinct parts. As such, you have to tell it which part of the address you're giving it. So instead of what's in your example, you'd do the following:

ppl post me --street "1 Testing Road"

And then you'd see some output from ppl post me. See the documentation for ppl post for more details.

In order to help avoid this confusion in future, I'm going to alter the behaviour of the command. Providing a string such as "1 Testing Road" without an option flag such as --street indicating what the string means is incorrect usage and users ought to be notified of the error.

@rlp10
Copy link
Author

rlp10 commented Dec 30, 2012

Thanks very much for the clarification!

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

No branches or pull requests

3 participants