Replies: 2 comments 2 replies
-
Thinking on it a bit further, there might be differences based on the OS: for Linux it could be |
Beta Was this translation helpful? Give feedback.
0 replies
-
See |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's not unusual to have a single binary linked under various names and executing different code depending on it. Probably the most prominent example is busybox.
In other words, the first (top-level) command would be parsed from
Path(argv[0]).file_stem()
.It is entirely possible to do it manually, like the example below, but it would be very nice to have this kind of capability built into Clap.
Beta Was this translation helpful? Give feedback.
All reactions