Skip to content

Instantly share code, notes, and snippets.

View Headline's full-sized avatar

Headline

View GitHub Profile
@Headline
Headline / catall.rs
Created April 7, 2022 17:40
Used for concatenating all code in a dir into a single output for homework submission
use std::{env, fs};
use std::fs::File;
use std::io::Read;
use std::path::PathBuf;
use std::process::exit;
fn output_help() {
println!("Usage: catall [OPTIONS] <directory>\n");
println!("Concatenates all files within a directory to output");
println!("Options:");