Hi!
I think it will be better to see help message instead of panic when you forgot to specify command.
After this fix you will see something like that:
$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/rust_ledger`
rust_ledger 0.4.3
Eric Crowder <eric@ebcrowder.dev>
USAGE:
rust_ledger [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
account account module
balance balance module
csv csv module
help Prints this message or the help of the given subcommand(s)
register register module
$
Hi! I think it will be better to see help message instead of panic when you forgot to specify command. After this fix you will see something like that: