Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-H, -L, -R switches not recognized #23

Closed
Feuermurmel opened this issue Feb 6, 2016 · 3 comments
Closed

-H, -L, -R switches not recognized #23

Feuermurmel opened this issue Feb 6, 2016 · 3 comments
Labels

Comments

@Feuermurmel
Copy link

The man page specifies that e.g. either -H or --home can be used to limit searching of tagged files:

        -H | --home         Find tagged files in user home directory
        -L | --local        Find tagged files in home + local filesystems
        -R | --network      Find tagged files in home + local + network filesystems

Using --home works as expected:

$ tag --home -f Green
[…]/Desktop/test

But using --H instead gives an error (while still providing results):

$ tag -H -f Green
tag: invalid option -- H
[…]/Desktop/test

Im using v0.8.1 installed via MacPorts.

@jdberry jdberry added the bug label Feb 6, 2016
@jdberry
Copy link
Owner

jdberry commented Feb 6, 2016

Indeed. It looks like I added those switches to the case statement but not into the accepted getopt_long characters. Thanks for the report.

@Feuermurmel
Copy link
Author

Maybe it's worth noting, now that -R isn't actually part of the interface yet, that for a tool to change the attributes of file, -R is by convention used to say act recursively. Examples for that are chown, chmod, chatter or ls.

Maybe you could use -R for the shorthand of --descend. What do you think?

@jdberry
Copy link
Owner

jdberry commented May 13, 2016

I'm inclined to take your suggestion @Feuermurmel, and add -R as an alias for --descend. And I'm inclined to simply remove the -H -L -R flags as currently defined, requiring the long form for these parameters.

@jdberry jdberry closed this as completed in 9d616a0 Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants