Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
M
mw
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
milliways
mw
Commits
e7a0999b
Commit
e7a0999b
authored
Sep 30, 2016
by
Andrew Price
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add prefixes to commands in the help listings
parent
03091bbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
src/client/Parse.c
src/client/Parse.c
+3
-3
src/client/Parse.h
src/client/Parse.h
+1
-1
src/client/newmain.c
src/client/newmain.c
+1
-2
src/client/talker.c
src/client/talker.c
+2
-2
No files found.
src/client/Parse.c
View file @
e7a0999b
...
...
@@ -291,7 +291,7 @@ int command_compare(const char *input, const char *comm)
return
(
c
);
}
void
help_list
(
CommandList
*
c
,
unsigned
int
hidestuff
)
void
help_list
(
CommandList
*
c
,
unsigned
int
hidestuff
,
const
char
*
const
prefix
)
{
char
buff
[
10
];
int
count
;
...
...
@@ -306,12 +306,12 @@ void help_list(CommandList *c, unsigned int hidestuff)
{
if
(
!
hidestuff
)
{
printf
(
"%
20s - %s
\n
"
,
c
->
Command
,
c
->
Desc
);
printf
(
"%
8s%-12s - %s
\n
"
,
prefix
,
c
->
Command
,
c
->
Desc
);
count
++
;
}
else
if
(
c
->
Show
==
1
)
{
printf
(
"%
20s - %s
\n
"
,
c
->
Command
,
c
->
Desc
);
printf
(
"%
8s%-12s - %s
\n
"
,
prefix
,
c
->
Command
,
c
->
Desc
);
count
++
;
}
}
...
...
src/client/Parse.h
View file @
e7a0999b
...
...
@@ -90,7 +90,7 @@ extern void c_version(CommandList *cm, int argc, const char **argv, char *args);
extern
void
c_alias
(
CommandList
*
cm
,
int
argc
,
const
char
**
argv
,
char
*
args
);
extern
void
c_unalias
(
CommandList
*
cm
,
int
argc
,
const
char
**
argv
,
char
*
args
);
void
help_list
(
CommandList
*
c
,
unsigned
int
hidestuff
);
void
help_list
(
CommandList
*
c
,
unsigned
int
hidestuff
,
const
char
*
const
prefix
);
char
*
remove_first_word
(
char
*
args
);
#endif
src/client/newmain.c
View file @
e7a0999b
...
...
@@ -45,7 +45,6 @@ extern int busy; /* if true dont display messages i.e. during new/write */
extern
unsigned
long
rights
;
extern
struct
user
*
const
user
;
extern
CommandList
table
[];
extern
void
help_list
(
CommandList
*
cm
,
unsigned
int
hidestuff
);
static
void
help
(
const
char
*
topic
,
int
wiz
)
{
...
...
@@ -123,7 +122,7 @@ void c_help(CommandList *cm, int argc, const char **argv, char *args)
if
(
argc
>
1
)
help
(
argv
[
1
],
u_god
(
user
));
else
help_list
(
table
,
1
);
help_list
(
table
,
1
,
CMD_BOARD_STR
);
}
void
c_cd
(
CommandList
*
cm
,
int
argc
,
const
char
**
argv
,
char
*
args
)
...
...
src/client/talker.c
View file @
e7a0999b
...
...
@@ -1264,7 +1264,7 @@ void t_help(CommandList *cm, int argc, const char **argv, char *args)
if
(
argc
<
2
)
{
help_list
(
chattable
,
1
);
help_list
(
chattable
,
1
,
CMD_TALK_STR
);
return
;
}
...
...
@@ -1411,4 +1411,4 @@ int ChangeRoom(char *room, int quiet)
}
return
(
0
);
}
\ No newline at end of file
}
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