Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
ef65b674
Commit
ef65b674
authored
Sep 18, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small improve commands
parent
ff32a0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
epm
bin/epm
+7
-4
No files found.
bin/epm
View file @
ef65b674
...
...
@@ -176,10 +176,12 @@ for opt in "$@" ; do
check_command
$opt
&&
continue
case
$opt
in
-h
|
--help
|
help
)
# HELPOPT: this help
phelp
;
exit
0
phelp
exit
0
;;
-v
|
--version
)
# HELPOPT: print version
print_version
;
exit
0
print_version
exit
0
;;
--verbose
)
# HELPOPT: verbose mode
verbose
=
1
...
...
@@ -220,13 +222,14 @@ pkg_filenames=$(strip_spaces "$pkg_files $pkg_names")
echover
"pkg_files=
$pkg_files
"
echover
"pkg_names=
$pkg_names
"
#
Run helper for command
#
Just printout help if run without args
if
[
-z
"
$epm_cmd
"
]
;
then
print_version
echo
fatal
"Run
$
epm --help for get help"
fi
# Run helper for command
load_helper epm-
$epm_cmd
epm_
$epm_cmd
# return last error code
# return last error code
(from subroutine)
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