forked from airlift/airline
-
Notifications
You must be signed in to change notification settings - Fork 22
Support positional arguments #91
Copy link
Copy link
Open
Labels
enhancementProposed Enhancement/FeatureProposed Enhancement/Featureuser-experienceImproves user experienceImproves user experience
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementProposed Enhancement/FeatureProposed Enhancement/Featureuser-experienceImproves user experienceImproves user experience
Currently
@Argumentsis a general annotation that can only be applied to a single field and collects all non-option values into that field. There are various use cases where it might be nicer to support true positional arguments i.e. a new@PositionalArgumentannotation such that arguments could be captured on separate fields and provide more detailed help specific to each argumente.g.
Which would be used as follows:
Where
source.txtwould be set to thesourcefield,target.txtset to thetargetfield and the additional arguments passed to theextraArgsfield