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

Expose arg_basename function as part of the API #91

Closed
antoniovazquezblanco opened this issue Jan 31, 2024 · 2 comments
Closed

Expose arg_basename function as part of the API #91

antoniovazquezblanco opened this issue Jan 31, 2024 · 2 comments

Comments

@antoniovazquezblanco
Copy link

Given that arg_basename is used internally in arg_file, I was wondering if it would make sense to expose it to the user.

One simple but common use would be to substitute progname with arg_basename(argv[0]).

Thanks

@tomghuang
Copy link
Contributor

@antoniovazquezblanco : I use the cwalk library (https://likle.github.io/cwalk/reference/) to do these path operations. It is a single-file library, which is as easy to use as argtable3.

@antoniovazquezblanco
Copy link
Author

Thanks!

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

2 participants