Merge pull request #1679 from inclement/screendoc

Fixed syntax in screen module error message
This commit is contained in:
Mathieu Virbel 2013-12-07 06:15:22 -08:00
commit e23c96b8d0
1 changed files with 7 additions and 5 deletions

View File

@ -89,8 +89,8 @@ def usage(device=None):
if device:
Logger.error('Screen: The specified device ({0}) is unknown.',
device)
print('\nModule usage: python main.py -m screen,deviceid[,orientation]\n')
print('Availables devices:\n')
print('\nModule usage: python main.py -m screen:deviceid[,orientation]\n')
print('Available devices:\n')
print('{0:12} {1:<22} {2:<8} {3:<8} {4:<5} {5:<8}'.format(
'Device ID', 'Name', 'Width', 'Height', 'DPI', 'Density'))
for device, info in devices.items():
@ -98,11 +98,13 @@ def usage(device=None):
device, *info))
print('\n')
print('Simulate a medium-density screen such as Motolora Droid 2:\n')
print(' python main.py -m screen,droid2\n')
print(' python main.py -m screen:droid2\n')
print('Simulate a high-density screen such as HTC One X, in portrait:\n')
print(' python main.py -m screen,onex,portrait\n')
print(' python main.py -m screen:onex,portrait\n')
print('Simulate the iPad 2 screen\n')
print(' python main.py -m screen,ipad\n')
print(' python main.py -m screen:ipad\n')
print('If the generated window is too large, you can specify a scale:\n')
print(' python main.py -m screen:note2,portrait,scale=.75\n')
sys.exit(1)