Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to execute or run a file in Ubuntu, by using ./filename on the command line. When I try and run it, I get this error:

Error: A mode argument is required

There is no file extension on the file. The file is called oracle and as far as I know, there shouldn't be a problem with the file.

How do I fix the error and run the file?

share|improve this question
add comment

1 Answer 1

The file your are trying to start requires AT LEAST 1 ARGUMENT.

As you can see here the method used here is oracle callgraph <package> and the code in the software has your message:

args := flag.Args()
+ if len(args) == 0 || args[0] == "" {
+ fmt.Fprint(os.Stderr, "Error: a mode argument is required.\n"+useHelp)
+ os.Exit(2)

It will exit the program with that error message if the amount of arguments is zero or is it is empty.


If your filename is filename I expect it needs to be at least

oracle filename
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.