Skip to content

Commit

Permalink
Change short option for --skip-lines, to leave -L open for --locale
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Jan 28, 2017
1 parent a74f36d commit ceedd14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions csvkit/cli.py
Expand Up @@ -166,8 +166,8 @@ def _init_common_parser(self):
if 'H' not in self.override_flags:
self.argparser.add_argument('-H', '--no-header-row', dest='no_header_row', action='store_true',
help='Specify that the input CSV file has no header row. Will create default headers (a,b,c,...).')
if 'L' not in self.override_flags:
self.argparser.add_argument('-L', '--skip-lines', dest='skip_lines', type=int, default=0,
if 'K' not in self.override_flags:
self.argparser.add_argument('-K', '--skip-lines', dest='skip_lines', type=int, default=0,
help='Specify the number of initial lines to skip (e.g. comments, copyright notices, empty rows).')
if 'v' not in self.override_flags:
self.argparser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
Expand Down
2 changes: 1 addition & 1 deletion csvkit/utilities/sql2csv.py
Expand Up @@ -10,7 +10,7 @@

class SQL2CSV(CSVKitUtility):
description = 'Execute an SQL query on a database and output the result to a CSV file.'
override_flags = 'f,b,d,e,H,p,q,S,t,u,z,zero'.split(',')
override_flags = 'f,b,d,e,H,K,p,q,S,t,u,z,zero'.split(',')

def add_arguments(self):
self.argparser.add_argument('--db', dest='connection_string', default='sqlite://',
Expand Down

0 comments on commit ceedd14

Please sign in to comment.