Mention2Mail/src/main.rs

25 lines
929 B
Rust
Raw Normal View History

2021-04-23 01:04:06 +02:00
/* Copyright 2021 Daniel Mowitz
* This file is part of Mention2Mail.
*
* Mention2Mail is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Mention2Mail is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Mention2Mail. If not, see <https://www.gnu.org/licenses/>.
*/
2021-04-23 17:14:44 +02:00
use std::env::args;
fn main() {
2021-04-23 17:14:44 +02:00
let flag = args().nth(1).expect("no flag");
let value = args().nth(2).expect("no value");
println!("Got flag {} with value {}", flag, value);
}