From 1d08430b19a059556611fdd199f6c8c11da95f53 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Ducati?= <soeren.ducati@gmail.com>
Date: Mon, 1 Jul 2024 19:18:33 +0200
Subject: [PATCH] chore: improved README with functionality

---
 README.md | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index b2be360..371d9b1 100644
--- a/README.md
+++ b/README.md
@@ -20,18 +20,16 @@ Launch a Python shell, e.g., using:
 
 ```bash
 source venv/bin/activate
-python3
+python3 main.py -e
 ```
 
-Within the shell, type:
+This will only store the token locally in the secret storage, with minimal validation.
+To facilitate scripting, you can also pass the token as a quoted (!) string to the script, i.e like that:
 
-```python
-from main import enroll_token
-enroll_token("otpauth://totp/...")  # replace this with the URL you've gotten from the 2FA enrollment system
+```bash
+python3 main.py -e "otpauth://totp/..."
 ```
 
-This will only store the token locally in the secret storage, without any validation whatsoever.
-
 ## Get token
 
 ```bash
-- 
GitLab