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

neo does not recognize its own name from the help menu #23

Closed
saltedcoffii opened this issue Aug 11, 2022 · 0 comments
Closed

neo does not recognize its own name from the help menu #23

saltedcoffii opened this issue Aug 11, 2022 · 0 comments

Comments

@saltedcoffii
Copy link

In most all GNU programs, programs will print their usage message as how they are called. For example, calling whoami --help prints the following:

Usage: whoami [OPTION]...
Print the user name associated with the current effective user ID.
Same as id -un.

      --help        display this help and exit
      --version     output version information and exit

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Full documentation <https://www.gnu.org/software/coreutils/whoami>
or available locally via: info '(coreutils) whoami invocation'

If I run ln -s /usr/bin/whoami ./quiensoy and subsequently run ./quiensoy --help, I get:

Usage: ./quiensoy [OPTION]...
Print the user name associated with the current effective user ID.
...

neo, when symlinked to a different location, does not do this, and instead returns

Usage: neo [OPTIONS]

Simulate the digital rain from "The Matrix"
...

regardless of how it is called. This can be problematic because the AUR package here uses neo-matrix instead of neo as the binary name to avoid a conflict with another program called neo. Have you considered using some permutation of basename(argv[0]) or something like that? I don't know much C or C++ so my ability to help is limited (I've already been working on it for an hour and can't get anything to compile properly.)

@st3w st3w closed this as completed in 6ba93ac Oct 8, 2022
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