Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow registering the same command several times #105

Open
jonahsnider opened this issue Oct 15, 2021 · 0 comments · May be fixed by #107
Open

Disallow registering the same command several times #105

jonahsnider opened this issue Oct 15, 2021 · 0 comments · May be fixed by #107

Comments

@jonahsnider
Copy link

jonahsnider commented Oct 15, 2021

import {Builtins, Cli} from 'clipanion';

const cli = new Cli({
	binaryLabel: `cli`,
	binaryName: `cli`,
	binaryVersion: `1.0.0`,
});

cli.register(Builtins.VersionCommand);
cli.register(Builtins.VersionCommand);
cli.register(Builtins.VersionCommand);
cli.register(Builtins.VersionCommand);
cli.register(Builtins.VersionCommand);

This should not be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant