api: Don't use 127.0.0.1:8000 as an example.
At least the zephyr.humbughq.com case is one our users might find useful. I imagine we'll end up hiding --site once we integrate the zephyr and main site tornado servers. (imported from commit a3a28492cf3f32b78eab6bbd48ba66be2f38a5f2)
This commit is contained in:
		
							parent
							
								
									9d6ce4ee0b
								
							
						
					
					
						commit
						03dc2b2af1
					
				
					 7 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """get-public-streams --user=<email address> [options]
 | 
			
		|||
 | 
			
		||||
Prints out all the public streams in the realm.
 | 
			
		||||
 | 
			
		||||
Example: get-public-streams --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
 | 
			
		||||
Example: get-public-streams --user=tabbott@humbughq.com --site=https://zephyr.humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """list-subscriptions --user=<email address> [options]
 | 
			
		|||
 | 
			
		||||
Prints out a list of the user's subscriptions.
 | 
			
		||||
 | 
			
		||||
Example: list-subscriptions --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
 | 
			
		||||
Example: list-subscriptions --user=tabbott@humbughq.com --site=https://zephyr.humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """print-messages --user=<email address> [options]
 | 
			
		|||
 | 
			
		||||
Prints out each message received by the indicated user.
 | 
			
		||||
 | 
			
		||||
Example: print-messages --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
 | 
			
		||||
Example: print-messages --user=tabbott@humbughq.com --site=https://zephyr.humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """print-next-message --user=<email address> [options]
 | 
			
		|||
 | 
			
		||||
Prints out the next message received by the user.
 | 
			
		||||
 | 
			
		||||
Example: print-next-messages --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
 | 
			
		||||
Example: print-next-messages --user=tabbott@humbughq.com --site=https://zephyr.humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """send-message [options] <recipient>
 | 
			
		|||
 | 
			
		||||
Sends a test message to the specified recipients.
 | 
			
		||||
 | 
			
		||||
Example: send-message --site=http://127.0.0.1:8000 iago@humbughq.com
 | 
			
		||||
Example: send-message --site=https://zephyr.humbughq.com iago@humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """subscribe --user=<email address> [options] --streams=<streams>
 | 
			
		|||
 | 
			
		||||
Ensures the user is subscribed to the listed streams.
 | 
			
		||||
 | 
			
		||||
Example: subscribe --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
 | 
			
		||||
Example: subscribe --user=tabbott@humbughq.com --site=https://zephyr.humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -29,7 +29,7 @@ usage = """unsubscribe --user=<email address> [options] --streams=<streams>
 | 
			
		|||
 | 
			
		||||
Ensures the user is not subscribed to the listed streams.
 | 
			
		||||
 | 
			
		||||
Example: unsubscribe --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
 | 
			
		||||
Example: unsubscribe --user=tabbott@humbughq.com --site=https://zephyr.humbughq.com
 | 
			
		||||
"""
 | 
			
		||||
parser = optparse.OptionParser(usage=usage)
 | 
			
		||||
parser.add_option('--site',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue