Set cli.notFoundUsage to false to not show `Cannot find module ...` #65

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@pksunkara
Contributor

pksunkara commented Jun 1, 2012

I needed this thing for a small flatiron cli app I was writing.

@indexzero

This comment has been minimized.

Show comment Hide comment
@indexzero

indexzero Jun 2, 2012

Owner

What does this do? I don't really see the value.

Owner

indexzero commented Jun 2, 2012

What does this do? I don't really see the value.

@indexzero indexzero closed this Jun 2, 2012

@pksunkara

This comment has been minimized.

Show comment Hide comment
@pksunkara

pksunkara Jun 2, 2012

Contributor

@indexzero, I am giving a use case below,

I have a flatiron cli tool named hub. I have several commands in that tool which are in here. Now, when a user gives some arguments for the tool, I want flatiron to do all the initial stuff and load the proper command. If the command is not found, I want the tool to spawn git [arguments] and pipe the output. Without this pr, flatiron first prints some help before spawning git. This commit enables us to not to display the Cannot find module ... message

This is important for my tool

Contributor

pksunkara commented Jun 2, 2012

@indexzero, I am giving a use case below,

I have a flatiron cli tool named hub. I have several commands in that tool which are in here. Now, when a user gives some arguments for the tool, I want flatiron to do all the initial stuff and load the proper command. If the command is not found, I want the tool to spawn git [arguments] and pipe the output. Without this pr, flatiron first prints some help before spawning git. This commit enables us to not to display the Cannot find module ... message

This is important for my tool

@indexzero

This comment has been minimized.

Show comment Hide comment
@indexzero

indexzero Jun 2, 2012

Owner

Hmm ... ok. I see. I'll reopen it. Merge away. Please write some docs and tests for this kind of stuff. We're really lacking good test fixtures in core.

Owner

indexzero commented Jun 2, 2012

Hmm ... ok. I see. I'll reopen it. Merge away. Please write some docs and tests for this kind of stuff. We're really lacking good test fixtures in core.

@indexzero indexzero reopened this Jun 2, 2012

@pksunkara

This comment has been minimized.

Show comment Hide comment
@pksunkara

pksunkara Jun 2, 2012

Contributor

Merged

Contributor

pksunkara commented Jun 2, 2012

Merged

@pksunkara pksunkara closed this Jun 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment