Skip to content

Commit

Permalink
Fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jun 29, 2017
1 parent c09b68d commit 5d87020
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/gmt_main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,10 @@ function gmt(cmd::String, args...)

# 3. Convert command line arguments to a linked GMT option list
LL = C_NULL
if (isempty(r)) # Just requesting usage message, so add -? to options
if (isempty(r) && n_argin == 0) # Just requesting usage message, so add -? to options
r = "-?"
end
LL = GMT_Create_Options(API, 0, r) # It uses also the fact that GMT parses and check options
if (LL == C_NULL)
error("Error creating the linked list of options. Probably a bad usage.")
end

# 4. Preprocess to update GMT option lists and return info array X

Expand Down

0 comments on commit 5d87020

Please sign in to comment.