diff options
-rw-r--r-- | src/c_go2work.go | 5 | ||||
-rw-r--r-- | src/u_prints.go | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go index 5a42160..1103c92 100644 --- a/src/c_go2work.go +++ b/src/c_go2work.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * go2work: src/c_go2work.go - * Mon Apr 4 17:25:53 CEST 2022 + * Mon Apr 4 19:31:34 CEST 2022 * Joe * * The main. @@ -62,7 +62,8 @@ func main() { log.SetPrefix(PROGNAME + ": ") log.SetFlags(0) if len(os.Args[0:]) == 1 { - log.Fatal("no arguments") + print_help() + os.Exit(1) return } switch os.Args[1] { diff --git a/src/u_prints.go b/src/u_prints.go index 2d2783c..3831d6b 100644 --- a/src/u_prints.go +++ b/src/u_prints.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * go2work: src/u_prints.go - * Mon Apr 4 17:25:43 CEST 2022 + * Mon Apr 4 19:27:33 CEST 2022 * Joe * * Stuff to print |