blob: 005d7393fec965342a84c0939c4250a1ea943a87 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "fuchsia.googlesource.com/jiri/cmdline"
// cmdExitCode represents the exitcode command.
var cmdExitCode = &cmdline.Command{
Runner: cmdline.RunnerFunc(runExitCode),
Name: "exitcode",
Short: "Short description of command exitcode",
Long: "Long description of command exitcode.",
ArgsName: "[args]",
ArgsLong: "[args] are ignored",
}
func runExitCode(env *cmdline.Env, _ []string) error {
return cmdline.ErrExitCode(42)
}
func main() {
cmdline.Main(cmdExitCode)
}