Update README and help message

This commit is contained in:
Thom Dickson 2021-12-21 20:41:39 -05:00
parent d1592e83a5
commit 13b5d679e6
Signed by: boots
GPG Key ID: 40BE2AF8EBF8D2BB
2 changed files with 5 additions and 3 deletions

View File

@ -19,9 +19,11 @@ The help message can be displayed by running `shepherd --help`.
The default path to the configuration file is `~/config/shepherd/config.toml`; however, a different location can be specified with the `--config` flag.
If a category is specified when adding a repository, it will show up in a folder under your root `source_dir` folder, which can be set in your `config.toml`.
To add a repository to shepherd:
```
shepherd add <name> <git-url>
shepherd add [--category | -c <category>] <name> <git-url>
```
To list out currently tracked repositories:

View File

@ -85,7 +85,7 @@ impl State {
let name: Option<String>;
match next {
Some(ref x) => match &x[..] {
"--category" => {
"--category" | "-c" => {
state.category = args.next();
name = args.next();
}
@ -93,7 +93,6 @@ impl State {
},
None => name = None,
}
eprintln!("Category: {:?}", name);
match name {
Some(x) => {
state.name = Some(x);
@ -276,6 +275,7 @@ OPTIONS:
-h, --help Print out this help message
--config Specify the location of the configuration file
--dump-config Dump the current configuration
-c, --category Specify the category when adding a repository
COMMANDS:
General