core-utils 0.1.2

A reimplementation of the GNU core utils in the Rust programming language
// Copyright (C) 2015, Alberto Corona <ac@albertocorona.com>
// All rights reserved. This file is part of core-utils, distributed under the
// GPL v3 license. For full terms please see the LICENSE file.

#![crate_type = "bin"]
use std::env;

fn print_help() {
    println!("\tpwd -- output the current working directory");
}

fn main() {
    let args = env::args_os();
    if args.len() != 1 {
        print_help();
    } else {
        println!("{}", env::current_dir().unwrap().display());
    }
}