Skip to content

Commit

Permalink
Merge pull request #38 from WestleyK/improve-fix
Browse files Browse the repository at this point in the history
Slightly improved 'Unknown command:' message
  • Loading branch information
jscook2345 committed May 17, 2019
2 parents 3cbcb48 + ac68084 commit f5e78ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*~
/cmd/siftool/siftool
7 changes: 4 additions & 3 deletions cmd/siftool/siftool.go
@@ -1,4 +1,4 @@
// Copyright (c) 2018, Sylabs Inc. All rights reserved.
// Copyright (c) 2018-2019, Sylabs Inc. All rights reserved.
// Copyright (c) 2017, SingularityWare, LLC. All rights reserved.
// Copyright (c) 2017, Yannick Cote <yhcote@gmail.com> All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
Expand All @@ -10,10 +10,11 @@ package main
import (
"flag"
"fmt"
"github.com/sylabs/sif/pkg/sif"
"log"
"os"
"runtime"

"github.com/sylabs/sif/pkg/sif"
)

var usageMessage = `siftool is a utility program for manipulating SIF files.
Expand Down Expand Up @@ -140,7 +141,7 @@ func main() {

cmd, ok := subcmds[subcommand]
if !ok {
log.Fatal("Unknown command:", subcommand)
log.Fatal("Unknown command: ", subcommand)
}

if err := cmd.fn(args); err != nil {
Expand Down

0 comments on commit f5e78ee

Please sign in to comment.