24 lines
929 B
Rust
24 lines
929 B
Rust
/* 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/>.
|
|
*/
|
|
|
|
use std::env::args;
|
|
|
|
fn main() {
|
|
let flag = args().nth(1).expect("no flag");
|
|
let value = args().nth(2).expect("no value");
|
|
println!("Got flag {} with value {}", flag, value);
|
|
}
|