clipboard icon indicating copy to clipboard operation
clipboard copied to clipboard

Help not available

Open sergeevabc opened this issue 3 years ago • 3 comments

Windows 7 x64, cb 0.0.1

$ cb --help
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', src/main.rs:35:67
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

sergeevabc avatar Dec 03 '22 01:12 sergeevabc

hey, for now help is available via cb with no flags. I'll add support for --help soon

amilajack avatar Jan 04 '23 17:01 amilajack

@amilajack cb with no flags prints the last contents copied to clipboard in terminal. To recreate:

$ echo "helloworld" | cb
$ cb
helloworld

Btw, this is the only tool on macOS that preserves escape sequences when doing a copy from stdin. macOS's pbcopy is not dev-friendly as it filters out escape sequences. Thanks! hopefully this will be maintained...

0-issue avatar Jul 19 '23 22:07 0-issue

glad you like the project :)

the behavior of cb printing to stdout is by design to allow the use cases in the readme

https://github.com/amilajack/clipboard#usage

amilajack avatar Jul 19 '23 23:07 amilajack