Skip to content

Commit f10372d

Browse files
authored
Merge pull request mysql2sqlite#76 from coreymgilmore/improved-usage-instructions
doc: improve built-in instructions on how to use this script
2 parents 2a759df + ddcbfee commit f10372d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mysql2sqlite

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ function printerr( s ){ print s | "cat >&2" }
99
BEGIN {
1010
if( ARGC != 2 ){
1111
printerr( \
12-
"USAGE: mysql2sqlite dump_mysql.sql > dump_sqlite3.sql\n" \
13-
" file name - (dash) is not supported, because - means stdin")
12+
"USAGE:\n"\
13+
" mysql2sqlite dump_mysql.sql > dump_sqlite3.sql\n" \
14+
" OR\n" \
15+
" mysql2sqlite dump_mysql.sql | sqlite3 sqlite.db\n" \
16+
"\n" \
17+
"NOTES:\n" \
18+
" Dash in filename is not supported, because dash (-) means stdin." )
1419
no_END = 1
1520
exit 1
1621
}

0 commit comments

Comments
 (0)