Skip to content

Commit 1152456

Browse files
aster-voidclaude
andcommitted
cli: make repo argument required
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 7356f5c commit 1152456

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

SPEC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ Examples:
124124
## CLI Interface
125125

126126
```
127-
rollcron [OPTIONS] [REPO]
127+
rollcron [OPTIONS] <REPO>
128128

129129
Arguments:
130-
[REPO] Path to local repo or remote URL [default: .]
130+
<REPO> Path to local repo or remote URL (required)
131131

132132
Options:
133-
-i, --interval <SECONDS> Pull interval [default: 60]
134-
-h, --help Print help
133+
--pull-interval <SECONDS> Pull interval [default: 3600]
134+
-h, --help Print help
135135
```
136136
137137
## Error Handling

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const CONFIG_FILE: &str = "rollcron.yaml";
1414
#[command(name = "rollcron", about = "Auto-pulling cron scheduler")]
1515
struct Args {
1616
/// Path to local repo or remote URL (https://... or git@...)
17-
#[arg(default_value = ".")]
1817
repo: String,
1918

2019
/// Pull interval in seconds

0 commit comments

Comments
 (0)