Make interactive issue/pull creation even if --repo flag is set #406

Open
opened 2021-09-23 14:16:22 +00:00 by 6543 · 1 comment
Owner

for now you can not interactively create things if you have no local repo since you then have to specify the repo but you can not since if you do set it there is no interaction

to solfe it we could either allow --repo flag or ask on interaction mode for that info too

best case would be both

for now you can not interactively create things if you have no local repo since you then have to specify the repo but you can not since if you do set it there is no interaction to solfe it we could either allow --repo flag or ask on interaction mode for that info too best case would be both
6543 added this to the v0.9.0 milestone 2021-09-23 14:16:22 +00:00
6543 added the
kind
enhancement
label 2021-09-23 14:16:22 +00:00
Member

This highlights that flag parsing in urfave/cli is quite bad:
Not only is argument order rather inflexible, but also missing inheritance of flags:
In cobra, flags can be inherited from parent commands; with that we could put generic flags like --repo on the parent command, making the "no subcommand-specific flags passed" check that would be helpful for this usecase possible..

This highlights that flag parsing in urfave/cli is quite bad: Not only is argument order rather inflexible, but also missing inheritance of flags: In cobra, flags can be inherited from parent commands; with that we could put generic flags like `--repo` on the parent command, making the "no subcommand-specific flags passed" check that would be helpful for this usecase possible..
noerw modified the milestone from v0.9.0 to v0.10.0 2022-09-13 18:08:45 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#406
No description provided.