From e47ca8fbcb97fe2d63e48e03fb1e01aa89fae901 Mon Sep 17 00:00:00 2001 From: raimocom Date: Thu, 6 Jun 2024 02:56:53 +0200 Subject: [PATCH 1/2] Update cli.go --- src/cli/cli.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/cli.go b/src/cli/cli.go index 2a9a900..345321f 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -41,7 +41,10 @@ func Run() (err error) { app.Version = Version app.Compiled = time.Now() app.Usage = "easily and securely transfer stuff from one computer to another" - app.UsageText = `Send a file: + app.UsageText = `croc [GLOBAL OPTIONS] [COMMAND] [COMMAND OPTIONS] [filename(s) or folder] + + USAGE EXAMPLES: + Send a file: croc send file.txt -git to respect your .gitignore From 80074b3727f95d98e54202aac49f6517748e5696 Mon Sep 17 00:00:00 2001 From: raimocom Date: Thu, 6 Jun 2024 03:38:15 +0200 Subject: [PATCH 2/2] Update cli.go (help clarification overwrite/resume) --- src/cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/cli.go b/src/cli/cli.go index 345321f..92c458b 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -104,7 +104,7 @@ func Run() (err error) { &cli.BoolFlag{Name: "ask", Usage: "make sure sender and recipient are prompted"}, &cli.BoolFlag{Name: "local", Usage: "force to use only local connections"}, &cli.BoolFlag{Name: "ignore-stdin", Usage: "ignore piped stdin"}, - &cli.BoolFlag{Name: "overwrite", Usage: "do not prompt to overwrite"}, + &cli.BoolFlag{Name: "overwrite", Usage: "do not prompt to overwrite or resume"}, &cli.BoolFlag{Name: "testing", Usage: "flag for testing purposes"}, &cli.StringFlag{Name: "curve", Value: "p256", Usage: "choose an encryption curve (" + strings.Join(pake.AvailableCurves(), ", ") + ")"}, &cli.StringFlag{Name: "ip", Value: "", Usage: "set sender ip if known e.g. 10.0.0.1:9009, [::1]:9009"},