| Conditions | 1 | 
| Total Lines | 29 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | # -*- coding: utf-8 -*- | ||
| 22 | def add_common_parser_args(parser): | ||
| 23 | """Parse CLI common login and repo arguments.""" | ||
| 24 | parser.add_argument( | ||
| 25 | 'repository', | ||
| 26 | help="Repository name to generate the Changelog for, in the form " | ||
| 27 | "user/repo or org/repo (e.g. spyder-ide/spyder)") | ||
| 28 | parser.add_argument( | ||
| 29 | '-u', | ||
| 30 | '--username', | ||
| 31 | action="store", | ||
| 32 | dest="username", | ||
| 33 | default='', | ||
| 34 | help="Github user name") | ||
| 35 | parser.add_argument( | ||
| 36 | '-p', | ||
| 37 | '--password', | ||
| 38 | action="store", | ||
| 39 | dest="password", | ||
| 40 | default='', | ||
| 41 | help="Github user password") | ||
| 42 | parser.add_argument( | ||
| 43 | '-t', | ||
| 44 | '--token', | ||
| 45 | action="store", | ||
| 46 | dest="token", | ||
| 47 | default='', | ||
| 48 | help="Github access token") | ||
| 49 | |||
| 50 | return parser | ||
| 51 | |||
| 66 |