Browse Source

En cours de développement

master
mls-361 7 months ago
parent
commit
79fd5d1e40
  1. 5
      internal/cmdline/cmdline.go

5
internal/cmdline/cmdline.go

@ -7,6 +7,7 @@
package cmdline
import (
"errors"
"fmt"
"os"
@ -28,7 +29,7 @@ func getCrypto(app *application.Application) (*crypto.Crypto, error) {
func decrypt(app *application.Application) error {
if len(os.Args) != 3 {
help(app)
return nil
return errors.New("not enough or too many arguments") //////////////////////////////////////////////////////////
}
es := os.Args[2]
@ -51,7 +52,7 @@ func decrypt(app *application.Application) error {
func encrypt(app *application.Application) error {
if len(os.Args) != 3 {
help(app)
return nil
return errors.New("not enough or too many arguments") //////////////////////////////////////////////////////////
}
ds := os.Args[2]

Loading…
Cancel
Save