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

Add help option to all command ! #274

Open
hymkor opened this issue Jan 22, 2018 · 3 comments
Open

Add help option to all command ! #274

hymkor opened this issue Jan 22, 2018 · 3 comments
Assignees

Comments

@hymkor
Copy link
Collaborator

hymkor commented Jan 22, 2018

By /? , /help , -help or -h

@hymkor hymkor self-assigned this Jan 22, 2018
@tomato3713
Copy link
Contributor

I tried to add a help option easily.
(There are some parts where the implementation is not clean, but ...)

master...tomato3713:add-build-in-cmd-help

It works in the following way.

$ pwd -h
Print the current working drive and directory.

$ pwd -help
Usage: pwd -N (N:digit) -L -P

    Print the current working drive and directory.
    Options:
        -N: N is digit. Print the N-previous directory.
        -L: Use PWD from environment, even if it contains symlinks. (default)
        -P: avoid symlinks.

If this works, why not add a help option for commands other than pwd as well?

@hymkor
Copy link
Collaborator Author

hymkor commented Nov 3, 2020

Not a bad idea.
But, Nyagos has many commands to change.
It will be late to start changes.

@tomato3713
Copy link
Contributor

Would you like to change commands before adding help option?

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

No branches or pull requests

2 participants