Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
f63b868e
Commit
f63b868e
authored
May 09, 2018
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt: print usage correctly for early args.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
fc8784e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ccan/opt/usage.c
ccan/opt/usage.c
+1
-1
No files found.
ccan/opt/usage.c
View file @
f63b868e
...
...
@@ -110,7 +110,7 @@ static char *add_desc(char *base, size_t *len, size_t *max,
base
=
add_str
(
base
,
len
,
max
,
opt
->
names
);
off
=
strlen
(
opt
->
names
);
if
(
opt
->
type
==
OPT_HASARG
if
(
(
opt
->
type
&
OPT_HASARG
)
&&
!
strchr
(
opt
->
names
,
' '
)
&&
!
strchr
(
opt
->
names
,
'='
))
{
base
=
add_str
(
base
,
len
,
max
,
" <arg>"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment