Skip to content

Commit fc98c54

Browse files
committed
fix(cli): add data loss warning to --force flag in pr command
Fixes bounty issue #1409 The --force flag help text now warns users that uncommitted changes will be lost when using this flag, as it triggers a forceful git checkout.
1 parent 771ba8f commit fc98c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-cli/src/pr_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub struct PrCli {
6363
#[arg(short, long)]
6464
pub path: Option<PathBuf>,
6565

66-
/// Force checkout even if there are uncommitted changes.
66+
/// Force checkout even if there are uncommitted changes (WARNING: uncommitted changes will be lost).
6767
#[arg(short, long)]
6868
pub force: bool,
6969

0 commit comments

Comments
 (0)