import click import pyperclip MBP_ISSUE_BASE = "Safeguard/MBP-issues" @click.command() @click.argument("issue", type=int) def sg_mbp_issue_ref(issue): reference = f"{MBP_ISSUE_BASE}#{issue}" pyperclip.copy(f"{MBP_ISSUE_BASE}#{issue}") click.echo(reference)