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

Slightly improved 'Unknown command:' message #38

Merged
merged 1 commit into from
May 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*~
/cmd/siftool/siftool
7 changes: 4 additions & 3 deletions cmd/siftool/siftool.go
Original file line number Diff line number Diff line change
@@ -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