Show the headless hint as the object to merge into the models file
This commit was merged in pull request #68.
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ def read_models(saved):
|
||||
|
||||
def ask_model(name, saved):
|
||||
if not (sys.stdin.isatty() and sys.stdout.isatty()):
|
||||
print(f"{name} has no model in {saved}, and stdin or stdout is not a terminal to ask on; run it on a terminal or add \"{name}\": \"<model>\" to the JSON object in {saved}", file=sys.stderr)
|
||||
print(f"{name} has no model in {saved}, and stdin or stdout is not a terminal to ask on; run it on a terminal or merge {{\"{name}\": \"<model>\"}} into {saved}", file=sys.stderr)
|
||||
sys.exit(2)
|
||||
offered = catalog()
|
||||
print(f"\nThe model to run {name} on, saved in {saved}:", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user