Skip to content

Inconsistent use of the short argument -t #354

Open
@askras

Description

@askras

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions