Skip to content

Improve help facility: razer-cli help TOPIC. #95

Description

@4kbyte

There's razer-cli -man TOPIC but that's not immediately intuitive and gets lost easily in the parser-generated -h output.

To start, add an alias to have razer-cli -man TOPIC be the same as:

razer-cli help TOPIC

Also, there's need of systematic review of whether Python and OS packaging are picking up the package data declared in setup.py.

> razer-cli -man device
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.13/razer-cli", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.13/site-packages/razer_cli/razer_cli/main.py", line 24, in main
    return util.print_manual(args.manual)
           ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/razer_cli/razer_cli/util.py", line 261, in print_manual
    ', '.join(sorted(os.listdir(d_path))))
                     ~~~~~~~~~~^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.13/site-packages/razer_cli/razer_cli/man_pages'

That's from gentoo (w/emerge up to date), and I suspect others.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions