added license information (GPL3) :3

This commit is contained in:
ika4422 2026-02-09 21:59:16 +00:00
parent 24f21e00e0
commit b79885e062
No known key found for this signature in database
3 changed files with 701 additions and 0 deletions

View file

@ -1,3 +1,20 @@
/*
* Copyright (C) 2026 ika4422
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use std::process;
use clap::Parser;
@ -28,6 +45,9 @@ struct Args {
#[arg(long, default_value_t = false)]
no_doll: bool,
#[arg(long)]
license: bool,
}
fn to_dollcode(mut n: BigUint) -> Result<String, String> {
@ -173,4 +193,9 @@ fn main() {
}
}
}
if args.license {
println!("{}", include_str!("../LICENSE"));
process::exit(1);
}
}