gopass icon indicating copy to clipboard operation
gopass copied to clipboard

List help instead of entering repl with no arguments?

Open jcrben opened this issue 1 year ago • 1 comments

Summary

I'm still learning gopass, but I'm more accustomed to seeing help when I don't use any arguments. I don't see a way to switch so that I can see the help builtin.

So I added a wrapper function in bash:

gopass() {
  if [[ "$#" -eq 0 ]]; then
    command gopass --help
  elif [[ "$1" == "repl" ]]; then
    command gopass
  else
    command gopass "$@"
  fi 
}

I originally just tried using an alias for simplicity: alias gopass=gopass --help - but I didn't see any other way to enter the repl?

Steps To Reproduce

See summary - not a bug

Expected behavior

Desired, not expected.

Environment

  • OS: Windows 10 MSYS2
  • OS version: MINGW64_NT-10.0-22631 lenovo-legion 3.4.10-87d57229.x86_64 2024-02-14 20:17 UTC x86_64 Msys
  • gopass Version: gopass 1.15.14 go1.22.5 windows amd64
  • Installation method: scoop

jcrben avatar Sep 24 '24 06:09 jcrben

Thanks for your report @jcrben. Since you are the first one to raise this request I'm inclined to leave the behavior as is. But if more folks feel the same way, please let us know in this issue.

dominikschulz avatar Sep 27 '24 12:09 dominikschulz