You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.)
The text was updated successfully, but these errors were encountered:
In most all GNU programs, programs will print their usage message as how they are called. For example, calling
whoami --help
prints the following:If I run
ln -s /usr/bin/whoami ./quiensoy
and subsequently run./quiensoy --help
, I get:neo
, when symlinked to a different location, does not do this, and instead returnsregardless of how it is called. This can be problematic because the AUR package here uses
neo-matrix
instead ofneo
as the binary name to avoid a conflict with another program called neo. Have you considered using some permutation ofbasename(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.)The text was updated successfully, but these errors were encountered: