aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-04 19:31:45 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-04 19:31:45 +0200
commit5e43c602496e051df7d69bb2abfcab183f7da76b (patch)
tree4371409d2ecbde79f1adf091302d78b6a0600cb7
parentBetter like this (diff)
downloadgo2work-5e43c602496e051df7d69bb2abfcab183f7da76b.tar.gz
go2work-5e43c602496e051df7d69bb2abfcab183f7da76b.tar.bz2
go2work-5e43c602496e051df7d69bb2abfcab183f7da76b.tar.xz
go2work-5e43c602496e051df7d69bb2abfcab183f7da76b.tar.zst
go2work-5e43c602496e051df7d69bb2abfcab183f7da76b.zip
Way less retarded like this
-rw-r--r--src/c_go2work.go5
-rw-r--r--src/u_prints.go2
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