Přidáno varování pro použití tokenu
This commit is contained in:
parent
3e1ed1b686
commit
ec02b6e97a
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ mod db;
|
|||
|
||||
fn main() {
|
||||
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) {
|
||||
Some(token) => token,
|
||||
None => {
|
||||
|
|
Loading…
Reference in a new issue