summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index b2985e2..6492b4a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -37,7 +37,7 @@ fn main() -> Result<()> {
}
if cli.list_models {
for model in all_models(&config.read()) {
- println!("{}", model.stringify());
+ println!("{}", model.full_name());
}
exit(0);
}
@@ -55,15 +55,15 @@ fn main() -> Result<()> {
if cli.dry_run {
config.write().dry_run = true;
}
- if let Some(model) = &cli.model {
- config.write().set_model(model)?;
- }
if let Some(name) = &cli.role {
config.write().set_role(name)?;
}
if let Some(session) = &cli.session {
config.write().start_session(session)?;
}
+ if let Some(model) = &cli.model {
+ config.write().set_model(model)?;
+ }
if cli.no_highlight {
config.write().highlight = false;
}