File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -207,17 +207,27 @@ impl ChatArgs {
207
207
}
208
208
}
209
209
210
+ let stdout = std:: io:: stdout ( ) ;
211
+ let mut stderr = std:: io:: stderr ( ) ;
212
+
210
213
let args: Vec < String > = std:: env:: args ( ) . collect ( ) ;
211
214
if args
212
215
. iter ( )
213
216
. any ( |arg| arg == "--profile" || arg. starts_with ( "--profile=" ) )
214
217
{
215
- eprintln ! ( "Warning: --profile is deprecated, use --agent instead" ) ;
218
+ execute ! (
219
+ stderr,
220
+ style:: SetForegroundColor ( Color :: Yellow ) ,
221
+ style:: Print ( "WARNING: " ) ,
222
+ style:: SetForegroundColor ( Color :: Reset ) ,
223
+ style:: Print ( "--profile is deprecated, use " ) ,
224
+ style:: SetForegroundColor ( Color :: Green ) ,
225
+ style:: Print ( "--agent" ) ,
226
+ style:: SetForegroundColor ( Color :: Reset ) ,
227
+ style:: Print ( " instead\n " )
228
+ ) ?;
216
229
}
217
230
218
- let stdout = std:: io:: stdout ( ) ;
219
- let mut stderr = std:: io:: stderr ( ) ;
220
-
221
231
let agents = {
222
232
let mut default_agent_name = None :: < String > ;
223
233
let agent_name = if let Some ( agent) = self . agent . as_deref ( ) {
You can’t perform that action at this time.
0 commit comments