- '--use-cookie-auth', action='store_true',
- help='Use cookie-based authentication instead of OAuth.')
+ '--auth-method',
+ metavar='METHOD',
+ default='bot' if tools.is_headless() else 'oauth',
+ help='Authentication method to use: %s. [default: %%default]' %
+ ', '.join(net.AUTH_METHODS))