python-zulip-api/examples
Keegan McAllister b65ce435c4 api/examples: Simplify optparse use
- The default 'default' is None
- The default 'dest' is the option name, with - replaced with _
- The default 'action' is 'store'

Not coincidentally, these defaults are correct for most of our existing code.

(imported from commit 9c6078bd778324e08e1ca214a97281a7bdce08c2)
2012-11-26 14:57:20 -05:00
..
curl-examples api: Remove hardcoded API keys from examples. 2012-11-26 12:25:38 -05:00
get-public-streams api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00
list-subscriptions api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00
print-messages api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00
print-next-message api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00
send-message api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00
subscribe api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00
unsubscribe api/examples: Simplify optparse use 2012-11-26 14:57:20 -05:00