Přidáno varování pro použití tokenu

This commit is contained in:
Jirka Sejkora 2021-02-22 18:55:55 +01:00
parent 3e1ed1b686
commit ec02b6e97a

View file

@ -15,6 +15,7 @@ mod db;
fn main() { fn main() {
let args: Vec<_> = std::env::args().collect(); let args: Vec<_> = std::env::args().collect();
// WARNING: Never do this on a multiuser system, read from env variables instead!
let api_token = match args.get(1) { let api_token = match args.get(1) {
Some(token) => token, Some(token) => token,
None => { None => {