Skip to content

Commit 47b98b1

Browse files
authored
tweak cli, update cargo.toml (#11)
1 parent e202312 commit 47b98b1

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
[package]
22
name = "fungoid"
3-
version = "0.1.0"
3+
version = "0.2.0"
4+
description = "A Befunge interpreter and IDE"
45
authors = ["Josh Karpel <josh.karpel@gmail.com>"]
56
edition = '2018'
7+
readme = "README.md"
8+
license-file = "LICENSE"
9+
documentation = "https://github.com/JoshKarpel/fungoid"
10+
homepage = "https://github.com/JoshKarpel/fungoid"
11+
repository = "https://github.com/JoshKarpel/fungoid"
612

713
[dependencies]
814
chrono = "0.4.19"

src/main.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,27 @@ fn _main() -> MainError {
2121
.about("A Befunge interpreter written in Rust")
2222
.subcommand(
2323
Command::new("run")
24-
.arg(Arg::new("time").long("time").help("enable timing"))
24+
.about("Execute a program")
25+
.arg(Arg::new("profile").long("profile").help("Enable profiling"))
2526
.arg(
2627
Arg::new("trace")
2728
.long("trace")
28-
.help("trace program execution"),
29+
.help("Trace program execution"),
2930
)
3031
.arg(
3132
Arg::new("FILE")
32-
.help("file to read program from")
33+
.help("The file to read the program from")
3334
.required(true),
3435
),
3536
)
3637
.subcommand(
37-
Command::new("ide").arg(
38+
Command::new("ide").about("Start a TUI IDE").arg(
3839
Arg::new("FILE")
39-
.help("file to read program from")
40+
.help("The file to read the program from")
4041
.required(true),
4142
),
4243
)
44+
.arg_required_else_help(true)
4345
.get_matches();
4446

4547
if let Some(matches) = matches.subcommand_matches("ide") {

0 commit comments

Comments
 (0)