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
Essentially, I think I need to only accept the = syntax, because in $ tail --follow some-file, some-file should be interpreted as a positional argument (in this case, the name of the file to print) and not as the value for the follow argument (which should default to descriptor). Is this possible?
The text was updated successfully, but these errors were encountered:
There currently isn't a way to force use of the --option=value syntax. Although, I could add this as an opt-in feature.
You're right that --follow some-file would currently be interpretted as some-file being the value to --follow. There is a way to allow options to have no values (Arg::minimum_values(0)), you'd have to use either $ tail some-file --follow or $ tail --follow -- some-file have it parse correctly in current clap.
I'll add this to the new feature request issues and should be able to knock it out this week.
I'm looking at the
follow
option of the Unixtail
command, and I'm not sure how to implement it. From the help output:So the following are equivalent:
Essentially, I think I need to only accept the
=
syntax, because in$ tail --follow some-file
,some-file
should be interpreted as a positional argument (in this case, the name of the file to print) and not as the value for thefollow
argument (which should default todescriptor
). Is this possible?The text was updated successfully, but these errors were encountered: