We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dda7857 commit 86e465bCopy full SHA for 86e465b
src/main.rs
@@ -1,6 +1,7 @@
1
use std::{env, fs};
2
use std::fs::File;
3
use std::io::Write;
4
+use std::process::exit;
5
6
const SIGN_BEGIN: &str = "<!-- BEGIN LGBT-CN SIGNATURE -->";
7
const SIGN_END: &str = "<!-- END LGBT-CN SIGNATURE -->";
@@ -11,7 +12,7 @@ fn main() {
11
12
let args: Vec<String> = env::args().collect();
13
let content: String;
14
if args.len() != 2 {
- eprintln!("[Error] Wrong number of arguments. Request 1, provided {}", args.len() - 1);
15
+ panic!("[Error] Wrong number of arguments. Request 1, provided {}", (args.len() - 1));
16
}
17
let target = args[1].clone();
18
if target.starts_with("http") {
0 commit comments