@@ -1525,7 +1525,7 @@ void do_source(struct st_command *command)
15251525{
15261526 static DYNAMIC_STRING ds_filename ;
15271527 const struct command_arg source_args [] = {
1528- "filename" , ARG_STRING , TRUE, & ds_filename , "File to source"
1528+ { "filename" , ARG_STRING , TRUE, & ds_filename , "File to source" }
15291529 };
15301530 DBUG_ENTER ("do_source" );
15311531
@@ -1911,7 +1911,7 @@ void do_remove_file(struct st_command *command)
19111911 int error ;
19121912 static DYNAMIC_STRING ds_filename ;
19131913 const struct command_arg rm_args [] = {
1914- "filename" , ARG_STRING , TRUE, & ds_filename , "File to delete"
1914+ { "filename" , ARG_STRING , TRUE, & ds_filename , "File to delete" }
19151915 };
19161916 DBUG_ENTER ("do_remove_file" );
19171917
@@ -1945,8 +1945,8 @@ void do_copy_file(struct st_command *command)
19451945 static DYNAMIC_STRING ds_from_file ;
19461946 static DYNAMIC_STRING ds_to_file ;
19471947 const struct command_arg copy_file_args [] = {
1948- "from_file" , ARG_STRING , TRUE, & ds_from_file , "Filename to copy from" ,
1949- "to_file" , ARG_STRING , TRUE, & ds_to_file , "Filename to copy to"
1948+ { "from_file" , ARG_STRING , TRUE, & ds_from_file , "Filename to copy from" } ,
1949+ { "to_file" , ARG_STRING , TRUE, & ds_to_file , "Filename to copy to" }
19501950 };
19511951 DBUG_ENTER ("do_copy_file" );
19521952
@@ -1982,8 +1982,8 @@ void do_chmod_file(struct st_command *command)
19821982 static DYNAMIC_STRING ds_mode ;
19831983 static DYNAMIC_STRING ds_file ;
19841984 const struct command_arg chmod_file_args [] = {
1985- "mode" , ARG_STRING , TRUE, & ds_mode , "Mode of file" ,
1986- "file" , ARG_STRING , TRUE, & ds_file , "Filename of file to modify"
1985+ { "mode" , ARG_STRING , TRUE, & ds_mode , "Mode of file" } ,
1986+ { "file" , ARG_STRING , TRUE, & ds_file , "Filename of file to modify" }
19871987 };
19881988 DBUG_ENTER ("do_chmod_file" );
19891989
@@ -2020,7 +2020,7 @@ void do_file_exist(struct st_command *command)
20202020 int error ;
20212021 static DYNAMIC_STRING ds_filename ;
20222022 const struct command_arg file_exist_args [] = {
2023- "filename" , ARG_STRING , TRUE, & ds_filename , "File to check if it exist"
2023+ { "filename" , ARG_STRING , TRUE, & ds_filename , "File to check if it exist" }
20242024 };
20252025 DBUG_ENTER ("do_file_exist" );
20262026
@@ -2102,8 +2102,8 @@ void do_write_file_command(struct st_command *command, my_bool append)
21022102 static DYNAMIC_STRING ds_filename ;
21032103 static DYNAMIC_STRING ds_delimiter ;
21042104 const struct command_arg write_file_args [] = {
2105- "filename" , ARG_STRING , TRUE, & ds_filename , "File to write to" ,
2106- "delimiter" , ARG_STRING , FALSE, & ds_delimiter , "Delimiter to read until"
2105+ { "filename" , ARG_STRING , TRUE, & ds_filename , "File to write to" } ,
2106+ { "delimiter" , ARG_STRING , FALSE, & ds_delimiter , "Delimiter to read until" }
21072107 };
21082108 DBUG_ENTER ("do_write_file" );
21092109
@@ -2211,7 +2211,7 @@ void do_cat_file(struct st_command *command)
22112211 char buff [512 ];
22122212 static DYNAMIC_STRING ds_filename ;
22132213 const struct command_arg cat_file_args [] = {
2214- "filename" , ARG_STRING , TRUE, & ds_filename , "File to read from"
2214+ { "filename" , ARG_STRING , TRUE, & ds_filename , "File to read from" }
22152215 };
22162216 DBUG_ENTER ("do_cat_file" );
22172217
@@ -2275,8 +2275,8 @@ void do_diff_files(struct st_command *command)
22752275 static DYNAMIC_STRING ds_filename ;
22762276 static DYNAMIC_STRING ds_filename2 ;
22772277 const struct command_arg diff_file_args [] = {
2278- "file1" , ARG_STRING , TRUE, & ds_filename , "First file to diff" ,
2279- "file2" , ARG_STRING , TRUE, & ds_filename2 , "Second file to diff"
2278+ { "file1" , ARG_STRING , TRUE, & ds_filename , "First file to diff" } ,
2279+ { "file2" , ARG_STRING , TRUE, & ds_filename2 , "Second file to diff" }
22802280 };
22812281 DBUG_ENTER ("do_diff_files" );
22822282
@@ -2352,7 +2352,7 @@ void do_perl(struct st_command *command)
23522352 static DYNAMIC_STRING ds_script ;
23532353 static DYNAMIC_STRING ds_delimiter ;
23542354 const struct command_arg perl_args [] = {
2355- "delimiter" , ARG_STRING , FALSE, & ds_delimiter , "Delimiter to read until"
2355+ { "delimiter" , ARG_STRING , FALSE, & ds_delimiter , "Delimiter to read until" }
23562356 };
23572357 DBUG_ENTER ("do_perl" );
23582358
@@ -3427,18 +3427,14 @@ void do_connect(struct st_command *command)
34273427 static DYNAMIC_STRING ds_sock ;
34283428 static DYNAMIC_STRING ds_options ;
34293429 const struct command_arg connect_args [] = {
3430- "connection name" , ARG_STRING , TRUE, & ds_connection_name ,
3431- "Name of the connection" ,
3432- "host" , ARG_STRING , TRUE, & ds_host , "Host to connect to" ,
3433- "user" , ARG_STRING , FALSE, & ds_user , "User to connect as" ,
3434- "passsword" , ARG_STRING , FALSE, & ds_password ,
3435- "Password used when connecting" ,
3436- "database" , ARG_STRING , FALSE, & ds_database ,
3437- "Dtabase to select after connect" ,
3438- "port" , ARG_STRING , FALSE, & ds_port , "Port to connect to" ,
3439- "socket" , ARG_STRING , FALSE, & ds_sock , "Socket to connect with" ,
3440- "options" , ARG_STRING , FALSE, & ds_options ,
3441- "Options to use while connecting"
3430+ { "connection name" , ARG_STRING , TRUE, & ds_connection_name , "Name of the connection" },
3431+ { "host" , ARG_STRING , TRUE, & ds_host , "Host to connect to" },
3432+ { "user" , ARG_STRING , FALSE, & ds_user , "User to connect as" },
3433+ { "passsword" , ARG_STRING , FALSE, & ds_password , "Password used when connecting" },
3434+ { "database" , ARG_STRING , FALSE, & ds_database , "Database to select after connect" },
3435+ { "port" , ARG_STRING , FALSE, & ds_port , "Port to connect to" },
3436+ { "socket" , ARG_STRING , FALSE, & ds_sock , "Socket to connect with" },
3437+ { "options" , ARG_STRING , FALSE, & ds_options , "Options to use while connecting" }
34423438 };
34433439
34443440 DBUG_ENTER ("do_connect" );
0 commit comments