catchorg / Clara

A simple to use, composable, command line parser for C++ 11 and beyond
Boost Software License 1.0
648 stars 67 forks source link

Support for shebang #80

Closed Exifers closed 5 years ago

Exifers commented 5 years ago

Hi,

I'm writing a little script interpreter using your option parser.

It would be cool if we could specify an arbitrary plain string as argument, like a filename, without specifying '--filename' before.

This would allow to support shebangs because this :

script.custom_extension

#! /bin/custom_interpreter

is read by the kernel and run as :

/bin/custom_interpreter script.custom_extension

Thank you for your option parser, it's very useful for me.

Exifers commented 5 years ago

Nevermind we can do this easily actually.