You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR(S):
No verb selected.
add Add file contents to the index.
commit Record changes to the repository.
clone Clone a repository into a new directory.
help Display more information on a specific command.
version Display version information.
Process finished with exit code 1.
If I need to debug it, how it's being done?
[Verb("add", HelpText ="Add file contents to the index.")]classAddOptions{//normal options here}[Verb("commit", HelpText ="Record changes to the repository.")]classCommitOptions{//commit options here}[Verb("clone", HelpText ="Clone a repository into a new directory.")]classCloneOptions{//clone options here}staticint Main(string[] args){return CommandLine.Parser.Default.ParseArguments<AddOptions,CommitOptions,CloneOptions>(args).MapResult((AddOptionsopts)=> RunAddAndReturnExitCode(opts),(CommitOptionsopts)=> RunCommitAndReturnExitCode(opts),(CloneOptionsopts)=> RunCloneAndReturnExitCode(opts),errs =>1);}privatestaticintRunCloneAndReturnExitCode(CloneOptionsopts){return1;}privatestaticintRunCommitAndReturnExitCode(CommitOptionsopts){return1;}privatestaticintRunAddAndReturnExitCode(AddOptionsopts){return0;}}
The text was updated successfully, but these errors were encountered:
Basic example crashes with this error on start:
Process finished with exit code 1.
The text was updated successfully, but these errors were encountered: