kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.47k stars 154 forks source link

support specifying path while opening joshuto #182

Closed notjedi closed 2 years ago

notjedi commented 2 years ago

it would be nice to have something like joshuto <PATH>. currently this does not work and results in the following error:

error: Found argument `<PATH>` which wasn't expected, or isn't valid in this context

USAGE:
    joshuto [OPTIONS]

For more information try --help
Vinegret43 commented 2 years ago

@notjedi, you actually can specify startup path, you just have to use --path option. Though, in my opinion, it's a strange design decision, and i agree that it would be great to make this argument positional instead. This may potentially break some people's shell scripts which rely on this option, but since Joshuto is still in heavy development, this shouldn't be too much of a concern. Would be nice to hear @kamiyaa's opinion on this

notjedi commented 2 years ago

@Vinegret43 oh didn't read the man page, my bad. but yeah i would have still opened this issue even if i had read the man page as it makes more sense to specify that path without the --path option.

kamiyaa commented 2 years ago

I'm not opposed to specifying the path without --path. It was designed this way originally to prevent collision with potential other options.

kamiyaa commented 2 years ago

Closed via eb8b155