sqlcrush
sqlcrush copied to clipboard
Support long arguments
I have a CLI tool which reads the configuration of an app and spits out mysql --user=username --password=username --database=databasename and it would be very helpful if I could just run eval $(drush sql-connect|sed 's/mysql/sqlcrush -t mysql/'). Of course I can sed each option like eval $(sed 's/^mysql/sqlcrush -t mysql/g;s/-\(-.\)[^=]*=/\1 /g') but it'd be simpler if I didn't need to.