Closed fakefred closed 2 years ago
This PR might be a bit controversial. In order not to break backward compatibility I abused boolean typer options to mimic one that takes an argument. For example,
joint_teapot create-issues --regex pgroup "title" --file issue.md
creates an illusion that pgroup is an argument to --regex and issue.md is to --file, but they are not. This command does the exact same thing:
pgroup
--regex
issue.md
--file
joint_teapot create-issues pgroup "title" issue.md --file --regex
Obviously this is a hack, but (1) it gets the job done and (2) doesn't break userland. What do you think?
Thanks for reviewing.
I think both solutions are acceptable, thanks.
This PR might be a bit controversial. In order not to break backward compatibility I abused boolean typer options to mimic one that takes an argument. For example,
creates an illusion that
pgroup
is an argument to--regex
andissue.md
is to--file
, but they are not. This command does the exact same thing:Obviously this is a hack, but (1) it gets the job done and (2) doesn't break userland. What do you think?
Thanks for reviewing.