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

Inconsistent use of the short argument -t #354

Open
askras opened this issue Mar 3, 2025 · 0 comments
Open

Inconsistent use of the short argument -t #354

askras opened this issue Mar 3, 2025 · 0 comments

Comments

@askras
Copy link
Contributor

askras commented Mar 3, 2025

Good day!

I noticed an inconsistent use of the short argument -t.

For example, in the ls command, the short argument -t is an alias for --type:

nb ls --help

Usage:
  nb ls ...

...

--tags                          List tags in the notebook or folder.
-t, --type <type>, --<type>     List items of <type>. <type> can be a file
extension or one of the following types:
    archive, audio, book, bookmark, document,
    folder, image, note, text, video
...

However, in the search command, the short argument -t is an alias for --tags:

nb search --help

Usage:
  nb search ...

...

-t, --tags                    List all tags found in the notebook.
--type <type>, --<type>       Search items of <type>. <type> can be a file
extension or one of the following types:
    note, bookmark, document, archive, image,
    video, audio, folder, text
...

Key observations:

  1. Same short flag -t maps to different long arguments:
    • --type in ls
    • --tags in search
  2. This inconsistency could cause confusion for users switching between commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant